Skip to content

Commit

Permalink
fix statictext center
Browse files Browse the repository at this point in the history
  • Loading branch information
DevGeniusCode committed Jan 3, 2025
1 parent a9ad83e commit bd3ec37
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 6 deletions.
Binary file renamed GenWND_v1.zip → GenWND_v1.0.1.zip
Binary file not shown.
2 changes: 1 addition & 1 deletion src/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ def select_file(self, file_path):
"""Handles selection of a file from the file tree."""
if self.is_modified:
reply = QMessageBox.question(self, 'Unsaved Changes',
"You have unsaved aaaaaaaaaaaaaaaaachanges. Do you want to save before selecting a new file?",
"You have unsaved changes. Do you want to save before selecting a new file?",
QMessageBox.StandardButton.Yes | QMessageBox.StandardButton.No | QMessageBox.StandardButton.Cancel)
if reply == QMessageBox.StandardButton.Yes:
self.save_file()
Expand Down
5 changes: 4 additions & 1 deletion src/properties/control_properties.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,8 @@ def create_entryfield_attributes(self, properties):
self.create_default_textures(properties)

def create_statictext_attributes(self, properties):
self.create_attributes_for_control(properties['attributes']['STATICTEXTDATA'][0])
statictext_data = normalize_boolean_values(properties['attributes']['STATICTEXTDATA'], ['CENTERED'])
self.create_attributes_for_control(statictext_data)
self.create_default_textures(properties)

def create_progressbar_attributes(self, properties):
Expand Down Expand Up @@ -219,6 +220,8 @@ def update_sub_property(self, main_key, sub_key, value=None):
main_key = "SLIDERDATA"
if main_key == "ENTRYFIELDDATA":
main_key = "TEXTENTRYDATA"
if main_key == 'SCROLLLISTBOXDATA':
main_key = "LISTBOXDATA"

for d in list_dict[main_key]:
if sub_key in d and d[sub_key] != value:
Expand Down
8 changes: 4 additions & 4 deletions version.rc
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
VSVersionInfo(
ffi=FixedFileInfo(
filevers=(1, 0, 0, 0),
prodvers=(1, 0, 0, 0),
filevers=(1, 0, 1, 0),
prodvers=(1, 0, 1, 0),
mask=0x3f,
flags=0x0,
OS=0x40004,
Expand All @@ -17,9 +17,9 @@ VSVersionInfo(
[
StringStruct(u'CompanyName', u'The Assembly Armada'),
StringStruct(u'FileDescription', u'GenWND Editor for C&C Generals Zero Hour'),
StringStruct(u'FileVersion', u'1.0.0'),
StringStruct(u'FileVersion', u'1.0.1'),
StringStruct(u'ProductName', u'GenWND'),
StringStruct(u'ProductVersion', u'1.0.0')
StringStruct(u'ProductVersion', u'1.0.1')
]
)
]
Expand Down

0 comments on commit bd3ec37

Please sign in to comment.