Skip to content

Commit

Permalink
add flags to item placement
Browse files Browse the repository at this point in the history
  • Loading branch information
schadocalex committed Mar 31, 2024
1 parent 0d7cb38 commit 4104d22
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
13 changes: 12 additions & 1 deletion src/gbx_structs.py
Original file line number Diff line number Diff line change
Expand Up @@ -3937,7 +3937,18 @@ def GbxCPlugEntRecordDataLoop(subcon):

body_chunks[0x2E020000] = Struct(
"version" / Int32ul,
"flags" / Int16ul,
"flags"
/ ByteSwapped( # little endian 16 bit
BitStruct(
"rest" / Hex(BitsInteger(10)),
"GhostMode" / Flag,
"SwitchPivotManually" / Flag,
"AutoRotation" / Flag,
"NotOnObject" / Flag,
"YawOnly" / Flag,
"u01" / Flag,
)
),
"cubeCenter" / GbxVec3,
"cubeSize" / Float32l,
"gridSnap_HStep" / Float32l,
Expand Down
2 changes: 1 addition & 1 deletion src/gui.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def main():
app = QApplication.instance() or QApplication(sys.argv)

win = GbxEditorUiWindow(
lambda file: on_new_file(win, file),
on_new_file,
default_directory=r"C:\Users\schad\Documents\Trackmania\Items",
)

Expand Down

0 comments on commit 4104d22

Please sign in to comment.