/////////////////////////// // UIBuilder Generated File //////////////////////////// // Main Object OBJECT "guiScreenSpace" "CreateARiderDebug" { ////////////////////////////// // Property OnCreate { IF Root.PlatformID == {"PC"} LOADLIB CreateARiderDebug c:\development\bmx3\assets\com\create\CREATDBG.ZIF IF Root.PlatformID == {"PS2"} LOADLIB CreateARiderDebug assets\create\CREATDBG.ZIF DECLARE Sint32 menuIsActive SET menuIsActive {0} } OnDestroy "UNLOADLIB CreateARiderDebug" Visible 1 OBJECT "guiFrame" "GenericMenu" { ////////////////////////////// // Property OnCreate { SET Visible {0} DECLARE String Caption DECLARE String PathPrefix DECLARE String OnInitialize DECLARE String OnSelect DECLARE String OnCancel } OnDestroy { UNDECLARE Caption UNDECLARE PathPrefix UNDECLARE OnInitialize UNDECLARE OnSelect UNDECLARE OnCancel } Visible 1 Position 50.000000 80.000000 0.000000 Scale 1.000000 1.000000 1.000000 Alignment 0 Color 255 255 255 255 Material_TopLeft "CreateARiderDebug.White" Material_Top "CreateARiderDebug.White" Material_TopRight "CreateARiderDebug.White" Material_Left "CreateARiderDebug.White" Material_Center "CreateARiderDebug.Black" Material_Right "CreateARiderDebug.White" Material_BottomLeft "CreateARiderDebug.White" Material_Bottom "CreateARiderDebug.White" Material_BottomRight "CreateARiderDebug.White" Width 400 Height 320 OBJECT "guiMenu" "Menu" { ////////////////////////////// // Property OnCreate { SET Visible {1} SET DisabledColor {127 127 127 255} SET SelectedColor {255 255 255 255} SET VisibleCount {9} SET ScrollOffset {0} SET Spacing {1.0} SET ScrollOffset {0} SET WrapAround {1} SET HideSelectionOnLostFocus {1} } Visible 1 Position 16.000000 16.000000 0.000000 Scale 1.000000 1.000000 1.000000 Horizontal 0 HorizontalSpacing 10 WrapAround 1 VisibleCount 9 SelectedIndex 0 HideSelectionOnLostFocus 1 Charset "CreateARiderDebug.Large" Spacing 1 Alignment 0 Color 192 192 192 255 SelectedColor 255 255 255 255 DisabledColor 127 127 127 255 OnGetFocus { SET SelectedIndex {0} SET Items {""} SET Caption.Text .Caption DECLARE String initializeScript DECLARE String initializeScriptSuffix SET initializeScript .pathPrefix IF initializeScript <> {""} STRCAT initializeScript {"."} SET initializeScriptSuffix .OnInitialize STRCAT initializeScript initializeScriptSuffix IF initializeScriptSuffix <> {""} PLAY *initializeScript ^ UNDECLARE initializeScript UNDECLARE initializeScriptSuffix } OnCancel { DECLARE String cancelScript DECLARE String cancelScriptSuffix SET cancelScript .pathPrefix IF cancelScript <> {""} STRCAT cancelScript {"."} SET cancelScriptSuffix .OnCancel STRCAT cancelScript cancelScriptSuffix PLAY .Hide IF cancelScriptSuffix <> {""} PLAY *cancelScript ^ UNDECLARE cancelScript UNDECLARE cancelScriptSuffix } OnItemSelect { DECLARE String selectScript DECLARE String selectScriptSuffix SET selectScript .pathPrefix IF selectScript <> {""} STRCAT selectScript {"."} SET selectScriptSuffix .OnSelect STRCAT selectScript selectScriptSuffix PLAY .Hide IF selectScriptSuffix <> {""} PLAY *selectScript ^ UNDECLARE selectScript UNDECLARE selectScriptSuffix } OBJECT "guiLabel" "Caption" { ////////////////////////////// // Property OnCreate { SET Visible {1} SET Spacing {1} SET Angle {0} } Visible 1 Position -10.000000 -31.000000 0.000000 Scale 1.000000 1.000000 1.000000 Alignment 16 Spacing 1 Tracking 1 Charset "CreateARiderDebug.Large" Color 255 255 255 255 Text "Remove Texture" Angle 0 Monospace 0 } } ACTION "Script" "Hide" { ////////////////////////////// // Property StartDelay 0 Script { KILLFOCUS SET Visible {0} SET Caption {""} SET PathPrefix {""} SET OnInitialize {""} SET OnSelect {""} SET OnCancel {""} } } ACTION "Script" "Show" { ////////////////////////////// // Property StartDelay 0 Script { SET Visible {1} SETFOCUS Menu } } } OBJECT "guiFrame" "GenericSlider" { ////////////////////////////// // Property OnCreate { SET Visible {0} DECLARE String Caption DECLARE String PathPrefix DECLARE String OnInitialize DECLARE String OnSelect DECLARE String OnCancel } OnDestroy { UNDECLARE Caption UNDECLARE PathPrefix UNDECLARE OnInitialize UNDECLARE OnSelect UNDECLARE OnCancel } Visible 0 Position 100.000000 100.000000 0.000000 Scale 1.000000 1.000000 1.000000 Alignment 0 Color 255 255 255 255 Material_TopLeft "CreateARiderDebug.White" Material_Top "CreateARiderDebug.White" Material_TopRight "CreateARiderDebug.White" Material_Left "CreateARiderDebug.White" Material_Center "CreateARiderDebug.Black" Material_Right "CreateARiderDebug.White" Material_BottomLeft "CreateARiderDebug.White" Material_Bottom "CreateARiderDebug.White" Material_BottomRight "CreateARiderDebug.White" Width 224 Height 40 ACTION "Script" "Hide" { ////////////////////////////// // Property StartDelay 0 Script { KILLFOCUS SET Visible {0} SET Caption {""} SET PathPrefix {""} SET OnInitialize {""} SET OnSelect {""} SET OnCancel {""} } } ACTION "Script" "Show" { ////////////////////////////// // Property StartDelay 0 Script { SET Visible {1} SETFOCUS Slider } } OBJECT "guiToggler" "Slider" { ////////////////////////////// // Property OnCreate { SET Visible {1} SET IsDisabled {0} } Visible 1 WrapAround 0 IsDisabled 0 MinValue 0 MaxValue 100 IncValue 1 CurValue 81 LastDir -1 EnableSound 0 OnGetFocus { SET CurValue {0} SET IncValue {1} SET MinValue {0} SET MaxValue {10} SET WrapAround {0} SET EnableSound {0} SET Caption.Text .Caption DECLARE String initializeScript DECLARE String initializeScriptSuffix SET initializeScript .pathPrefix IF initializeScript <> {""} STRCAT initializeScript {"."} SET initializeScriptSuffix .OnInitialize STRCAT initializeScript initializeScriptSuffix IF initializeScriptSuffix <> {""} PLAY *initializeScript ^ UNDECLARE initializeScript UNDECLARE initializeScriptSuffix PLAY OnChange } OnSelect { DECLARE String selectScript DECLARE String selectScriptSuffix SET selectScript .pathPrefix IF selectScript <> {""} STRCAT selectScript {"."} SET selectScriptSuffix .OnSelect STRCAT selectScript selectScriptSuffix PLAY .Hide IF selectScriptSuffix <> {""} PLAY *selectScript ^ UNDECLARE selectScript UNDECLARE selectScriptSuffix } OnCancel { DECLARE String cancelScript DECLARE String cancelScriptSuffix SET cancelScript .pathPrefix IF cancelScript <> {""} STRCAT cancelScript {"."} SET cancelScriptSuffix .OnCancel STRCAT cancelScript cancelScriptSuffix PLAY .Hide IF cancelScriptSuffix <> {""} PLAY *cancelScript ^ UNDECLARE cancelScript UNDECLARE cancelScriptSuffix } OnChange { DECLARE ZFloat sliderPosition DECLARE ZFloat upperBound SET sliderPosition CurValue SET upperBound MaxValue SUB upperBound MinValue SUB sliderPosition MinValue DIV sliderPosition upperBound MULT sliderPosition .Width ADD sliderPosition Position.x SET upperBound Marker.Width DIV upperBound {2.0} SUB sliderPosition upperBound SET Marker.Position.x sliderPosition SET Value.Text CurValue UNDECLARE sliderPosition UNDECLARE upperBound } OBJECT "guiLabel" "Caption" { ////////////////////////////// // Property OnCreate { SET Visible {1} SET Spacing {1} SET Angle {0} } Visible 1 Position 6.000000 -16.000000 0.000000 Scale 1.000000 1.000000 1.000000 Alignment 16 Spacing 1 Tracking 1 Charset "CreateARiderDebug.Large" Color 255 255 255 255 Text "Select Weight" Angle 0 Monospace 0 } OBJECT "guiImage" "Marker" { ////////////////////////////// // Property OnCreate "SET Visible {1}" Visible 1 Position 178.939972 0.000000 0.000000 Scale 1.000000 1.000000 1.000000 Alignment 0 TopLeftColor 255 255 255 255 BottomLeftColor 255 255 255 255 TopRightColor 255 255 255 255 BottomRightColor 255 255 255 255 Material "CreateARiderDebug.White" Width 5 Height 32 UScale 1 VScale 1 } OBJECT "guiLabel" "Value" { ////////////////////////////// // Property OnCreate { SET Visible {1} SET Spacing {1} SET Angle {0} } Visible 1 Position 10.000000 64.000000 0.000000 Scale 1.000000 1.000000 1.000000 Alignment 16 Spacing 1 Tracking 1 Charset "CreateARiderDebug.Large" Color 255 255 255 255 Text "81" Angle 0 Monospace 0 } } } OBJECT "guiLabel" "MainMenu" { ////////////////////////////// // Property Visible 0 Scale 1.000000 1.000000 1.000000 Alignment 0 Spacing 1.250000 Tracking 1 Color 255 255 255 255 Angle 0 Monospace 0 ACTION "Script" "Display" { ////////////////////////////// // Property StartDelay 0 Script { SET Root.CreateARiderDebug.menuIsActive {1} SET Root.CreateARiderDebug.GenericMenu.PathPrefix {"Root.CreateARiderDebug.MainMenu.Actions"} SET Root.CreateARiderDebug.GenericMenu.Caption {"Main Menu"} SET Root.CreateARiderDebug.GenericMenu.OnInitialize {"Initialize"} SET Root.CreateARiderDebug.GenericMenu.OnSelect {"Select"} SET Root.CreateARiderDebug.GenericMenu.OnCancel {"Cancel"} PLAY Root.CreateARiderDebug.GenericMenu.Show } } OBJECT "guiLabel" "Actions" { ////////////////////////////// // Property Visible 0 Scale 1.000000 1.000000 1.000000 Alignment 0 Spacing 1.250000 Tracking 1 Color 255 255 255 255 Angle 0 Monospace 0 ACTION "Script" "Initialize" { ////////////////////////////// // Property StartDelay 0 Script "SET Items {\"Change Skeleton\\nChange Body Parts\\nChange Texture\\nChange Weight\"}" } ACTION "Script" "Select" { ////////////////////////////// // Property StartDelay 0 Script { GOTO SelectedIndex GOTO End :0 PLAY Root.CreateARiderDebug.SkeletonMenu.Display GOTO End :1 PLAY Root.CreateARiderDebug.BodyPartsMenu.Display GOTO End :2 PLAY Root.CreateARiderDebug.TextureMenu.Display GOTO End :3 PLAY Root.CreateARiderDebug.WeightMenu.Display GOTO End :End } } ACTION "Script" "Cancel" { ////////////////////////////// // Property StartDelay 0 Script "SET Root.CreateARiderDebug.menuIsActive {0}" } } } OBJECT "guiLabel" "SkeletonMenu" { ////////////////////////////// // Property Visible 0 Scale 1.000000 1.000000 1.000000 Alignment 0 Spacing 1.250000 Tracking 1 Color 255 255 255 255 Angle 0 Monospace 0 ACTION "Script" "Display" { ////////////////////////////// // Property StartDelay 0 Script { SET Root.CreateARiderDebug.menuIsActive {1} SET Root.CreateARiderDebug.GenericMenu.PathPrefix {"Root.CreateARiderDebug.SkeletonMenu.Actions"} SET Root.CreateARiderDebug.GenericMenu.Caption {"Select Skeleton"} SET Root.CreateARiderDebug.GenericMenu.OnInitialize {"Initialize"} SET Root.CreateARiderDebug.GenericMenu.OnSelect {"Select"} SET Root.CreateARiderDebug.GenericMenu.OnCancel {"Cancel"} PLAY Root.CreateARiderDebug.GenericMenu.Show } } OBJECT "guiLabel" "Actions" { ////////////////////////////// // Property Visible 0 Scale 1.000000 1.000000 1.000000 Alignment 0 Spacing 1.250000 Tracking 1 Color 255 255 255 255 Angle 0 Monospace 0 ACTION "Script" "Initialize" { ////////////////////////////// // Property StartDelay 0 Script { DECLARE String libraryPath SET libraryPath {"assets\create\skeleton.zal"} IF Root.PlatformID == {"PS2"} CALL createAModelGetListOfAssetsInLibrary libraryPath items UNDECLARE libraryPath } } ACTION "Script" "Select" { ////////////////////////////// // Property StartDelay 0 Script { DECLARE Sint32 modelIndex DECLARE String aspect DECLARE String libraryPath DECLARE String assetName DECLARE Sint32 assetRank SET modelIndex {0} SET aspect {"Skeleton"} SET libraryPath {"assets\create\skeleton.zal"} STRTOKEN assetName items selectedIndex SET assetRank {0} IF Root.PlatformID == {"PS2"} CALL createAModelAddComponent modelIndex aspect libraryPath assetName assetRank UNDECLARE modelIndex UNDECLARE aspect UNDECLARE libraryPath UNDECLARE assetName UNDECLARE assetRank PLAY Root.CreateARiderDebug.MainMenu.Display } } ACTION "Script" "Cancel" { ////////////////////////////// // Property StartDelay 0 Script "PLAY Root.CreateARiderDebug.MainMenu.Display" } } } OBJECT "guiLabel" "BodyPartsMenu" { ////////////////////////////// // Property Visible 0 Scale 1.000000 1.000000 1.000000 Alignment 0 Spacing 1.250000 Tracking 1 Color 255 255 255 255 Angle 0 Monospace 0 ACTION "Script" "Display" { ////////////////////////////// // Property StartDelay 0 Script { SET Root.CreateARiderDebug.menuIsActive {1} SET Root.CreateARiderDebug.GenericMenu.PathPrefix {"Root.CreateARiderDebug.BodyPartsMenu.Actions"} SET Root.CreateARiderDebug.GenericMenu.Caption {"Add or Remove Body Part"} SET Root.CreateARiderDebug.GenericMenu.OnInitialize {"Initialize"} SET Root.CreateARiderDebug.GenericMenu.OnSelect {"Select"} SET Root.CreateARiderDebug.GenericMenu.OnCancel {"Cancel"} PLAY Root.CreateARiderDebug.GenericMenu.Show } } OBJECT "guiLabel" "Actions" { ////////////////////////////// // Property Visible 0 Scale 1.000000 1.000000 1.000000 Alignment 0 Spacing 1.250000 Tracking 1 Color 255 255 255 255 Angle 0 Monospace 0 ACTION "Script" "Initialize" { ////////////////////////////// // Property StartDelay 0 Script "SET Items {\"Add Body Part\\nRemove Body Part\\nREMOVE ALL\"}" } ACTION "Script" "Select" { ////////////////////////////// // Property StartDelay 0 Script { GOTO SelectedIndex GOTO End :0 PLAY @..AddBodyPartMenu.Display GOTO End :1 PLAY @..RemoveBodyPartMenu.Display GOTO End :2 PLAY @..RemoveAllBodyPartsMenu.Display GOTO End :End } } ACTION "Script" "Cancel" { ////////////////////////////// // Property StartDelay 0 Script "PLAY Root.CreateARiderDebug.MainMenu.Display" } } OBJECT "guiLabel" "AddBodyPartMenu" { ////////////////////////////// // Property Visible 0 Scale 1.000000 1.000000 1.000000 Alignment 0 Spacing 1.250000 Tracking 1 Color 255 255 255 255 Angle 0 Monospace 0 ACTION "Script" "Display" { ////////////////////////////// // Property StartDelay 0 Script { SET Root.CreateARiderDebug.menuIsActive {1} SET Root.CreateARiderDebug.GenericMenu.PathPrefix {"Root.CreateARiderDebug.BodyPartsMenu.AddBodyPartMenu.Actions"} SET Root.CreateARiderDebug.GenericMenu.Caption {"Add Body Part"} SET Root.CreateARiderDebug.GenericMenu.OnInitialize {"Initialize"} SET Root.CreateARiderDebug.GenericMenu.OnSelect {"Select"} SET Root.CreateARiderDebug.GenericMenu.OnCancel {"Cancel"} PLAY Root.CreateARiderDebug.GenericMenu.Show } } OBJECT "guiLabel" "Actions" { ////////////////////////////// // Property Visible 0 Scale 1.000000 1.000000 1.000000 Alignment 0 Spacing 1.250000 Tracking 1 Color 255 255 255 255 Angle 0 Monospace 0 ACTION "Script" "Initialize" { ////////////////////////////// // Property StartDelay 0 Script { DECLARE String libraryPath SET libraryPath {"assets\create\parts.zal"} IF Root.PlatformID == {"PS2"} CALL createAModelGetListOfAssetsInLibrary libraryPath items UNDECLARE libraryPath } } ACTION "Script" "Select" { ////////////////////////////// // Property StartDelay 0 Script { DECLARE Sint32 modelIndex DECLARE String aspect DECLARE String libraryPath DECLARE String assetName DECLARE Sint32 assetRank SET modelIndex {0} SET aspect {"Parts"} SET libraryPath {"assets\create\parts.zal"} STRTOKEN assetName items selectedIndex SET assetRank {-1} IF Root.PlatformID == {"PS2"} CALL createAModelAddComponent modelIndex aspect libraryPath assetName assetRank UNDECLARE modelIndex UNDECLARE aspect UNDECLARE libraryPath UNDECLARE assetName UNDECLARE assetRank PLAY @...Display } } ACTION "Script" "Cancel" { ////////////////////////////// // Property StartDelay 0 Script "PLAY @...Display" } } } OBJECT "guiLabel" "RemoveBodyPartMenu" { ////////////////////////////// // Property Visible 0 Scale 1.000000 1.000000 1.000000 Alignment 0 Spacing 1.250000 Tracking 1 Color 255 255 255 255 Angle 0 Monospace 0 ACTION "Script" "Display" { ////////////////////////////// // Property StartDelay 0 Script { SET Root.CreateARiderDebug.menuIsActive {1} SET Root.CreateARiderDebug.GenericMenu.PathPrefix {"Root.CreateARiderDebug.BodyPartsMenu.RemoveBodyPartMenu.Actions"} SET Root.CreateARiderDebug.GenericMenu.Caption {"Remove Body Part"} SET Root.CreateARiderDebug.GenericMenu.OnInitialize {"Initialize"} SET Root.CreateARiderDebug.GenericMenu.OnSelect {"Select"} SET Root.CreateARiderDebug.GenericMenu.OnCancel {"Cancel"} PLAY Root.CreateARiderDebug.GenericMenu.Show } } OBJECT "guiLabel" "Actions" { ////////////////////////////// // Property Visible 0 Scale 1.000000 1.000000 1.000000 Alignment 0 Spacing 1.250000 Tracking 1 Color 255 255 255 255 Angle 0 Monospace 0 ACTION "Script" "Initialize" { ////////////////////////////// // Property StartDelay 0 Script { DECLARE Sint32 modelIndex DECLARE String aspect DECLARE Sint32 assetRank SET modelIndex {0} SET aspect {"parts"} SET assetRank {-1} IF Root.PlatformID == {"PS2"} CALL createAModelGetListOfAppliedAssets modelIndex aspect assetRank items UNDECLARE modelIndex UNDECLARE aspect UNDECLARE assetRank } } ACTION "Script" "Select" { ////////////////////////////// // Property StartDelay 0 Script { DECLARE Sint32 modelIndex DECLARE String aspect DECLARE String assetName SET modelIndex {0} SET aspect {"Parts"} STRTOKEN assetName items selectedIndex IF Root.PlatformID == {"PS2"} CALL createAModelRemoveComponent modelIndex aspect assetName UNDECLARE modelIndex UNDECLARE aspect UNDECLARE assetName PLAY @...Display } } ACTION "Script" "Cancel" { ////////////////////////////// // Property StartDelay 0 Script "PLAY @...Display" } } } OBJECT "guiLabel" "RemoveAllBodyPartsMenu" { ////////////////////////////// // Property Visible 0 Scale 1.000000 1.000000 1.000000 Alignment 0 Spacing 1.250000 Tracking 1 Color 255 255 255 255 Angle 0 Monospace 0 ACTION "Script" "Display" { ////////////////////////////// // Property StartDelay 0 Script { SET Root.CreateARiderDebug.menuIsActive {1} SET Root.CreateARiderDebug.GenericMenu.PathPrefix {"Root.CreateARiderDebug.BodyPartsMenu.RemoveAllBodyPartsMenu.Actions"} SET Root.CreateARiderDebug.GenericMenu.Caption {"Remove All Body Parts"} SET Root.CreateARiderDebug.GenericMenu.OnInitialize {"Initialize"} SET Root.CreateARiderDebug.GenericMenu.OnSelect {"Select"} SET Root.CreateARiderDebug.GenericMenu.OnCancel {"Cancel"} PLAY Root.CreateARiderDebug.GenericMenu.Show } } OBJECT "guiLabel" "Actions" { ////////////////////////////// // Property Visible 0 Scale 1.000000 1.000000 1.000000 Alignment 0 Spacing 1.250000 Tracking 1 Color 255 255 255 255 Angle 0 Monospace 0 ACTION "Script" "Initialize" { ////////////////////////////// // Property StartDelay 0 Script { DECLARE Sint32 modelIndex DECLARE String aspect SET modelIndex {0} SET aspect {"Parts"} IF Root.PlatformID == {"PS2"} CALL createAModelRemoveAllComponents modelIndex aspect UNDECLARE modelIndex UNDECLARE aspect PLAY @...Display } } ACTION "Script" "Select" { ////////////////////////////// // Property StartDelay 0 Script "PLAY @...Display" } ACTION "Script" "Cancel" { ////////////////////////////// // Property StartDelay 0 Script "PLAY @...Display" } } } } OBJECT "guiLabel" "TextureMenu" { ////////////////////////////// // Property OnCreate "DECLARE Sint32 textureSet" OnDestroy "UNDECLARE textureSet" Visible 0 Scale 1.000000 1.000000 1.000000 Alignment 0 Spacing 1.250000 Tracking 1 Color 255 255 255 255 Angle 0 Monospace 0 ACTION "Script" "Display" { ////////////////////////////// // Property StartDelay 0 Script { SET Root.CreateARiderDebug.menuIsActive {1} SET Root.CreateARiderDebug.GenericMenu.PathPrefix {"Root.CreateARiderDebug.TextureMenu.Actions"} SET Root.CreateARiderDebug.GenericMenu.Caption {"Change Textures"} SET Root.CreateARiderDebug.GenericMenu.OnInitialize {"Initialize"} SET Root.CreateARiderDebug.GenericMenu.OnSelect {"Select"} SET Root.CreateARiderDebug.GenericMenu.OnCancel {"Cancel"} PLAY Root.CreateARiderDebug.GenericMenu.Show } } OBJECT "guiLabel" "Actions" { ////////////////////////////// // Property Visible 0 Scale 1.000000 1.000000 1.000000 Alignment 0 Spacing 1.250000 Tracking 1 Color 255 255 255 255 Angle 0 Monospace 0 ACTION "Script" "Initialize" { ////////////////////////////// // Property StartDelay 0 Script "SET Items {\"TEXTURE00\\nTEXTURE01\\nTEXTURE02\\nTEXTURE03\"}" } ACTION "Script" "Select" { ////////////////////////////// // Property StartDelay 0 Script { SET @..textureSet SelectedIndex PLAY @..AddOrRemoveTextureMenu.Display } } ACTION "Script" "Cancel" { ////////////////////////////// // Property StartDelay 0 Script "PLAY Root.CreateARiderDebug.MainMenu.Display" } } OBJECT "guiLabel" "AddOrRemoveTextureMenu" { ////////////////////////////// // Property Visible 0 Scale 1.000000 1.000000 1.000000 Alignment 0 Spacing 1.250000 Tracking 1 Color 255 255 255 255 Angle 0 Monospace 0 ACTION "Script" "Display" { ////////////////////////////// // Property StartDelay 0 Script { SET Root.CreateARiderDebug.menuIsActive {1} SET Root.CreateARiderDebug.GenericMenu.PathPrefix {"Root.CreateARiderDebug.TextureMenu.AddOrRemoveTextureMenu.Actions"} SET Root.CreateARiderDebug.GenericMenu.Caption {"Add Or Remove Texture"} SET Root.CreateARiderDebug.GenericMenu.OnInitialize {"Initialize"} SET Root.CreateARiderDebug.GenericMenu.OnSelect {"Select"} SET Root.CreateARiderDebug.GenericMenu.OnCancel {"Cancel"} PLAY Root.CreateARiderDebug.GenericMenu.Show } } OBJECT "guiLabel" "Actions" { ////////////////////////////// // Property Visible 0 Scale 1.000000 1.000000 1.000000 Alignment 0 Spacing 1.250000 Tracking 1 Color 255 255 255 255 Angle 0 Monospace 0 ACTION "Script" "Initialize" { ////////////////////////////// // Property StartDelay 0 Script "SET Items {\"Add Texture\\nRemove Texture\\nREMOVE ALL\"}" } ACTION "Script" "Select" { ////////////////////////////// // Property StartDelay 0 Script { IF SelectedIndex == {0} PLAY @..AddTextureMenu.Display IF SelectedIndex == {1} PLAY @..RemoveTextureMenu.Display IF SelectedIndex == {2} PLAY @..RemoveAllTexturesMenu.Display } } ACTION "Script" "Cancel" { ////////////////////////////// // Property StartDelay 0 Script "PLAY @...Display" } } OBJECT "guiLabel" "AddTextureMenu" { ////////////////////////////// // Property Visible 0 Scale 1.000000 1.000000 1.000000 Alignment 0 Spacing 1.250000 Tracking 1 Color 255 255 255 255 Angle 0 Monospace 0 ACTION "Script" "Display" { ////////////////////////////// // Property StartDelay 0 Script { SET Root.CreateARiderDebug.menuIsActive {1} SET Root.CreateARiderDebug.GenericMenu.PathPrefix {"Root.CreateARiderDebug.TextureMenu.AddOrRemoveTextureMenu.AddTextureMenu.Actions"} SET Root.CreateARiderDebug.GenericMenu.Caption {"Add Texture"} SET Root.CreateARiderDebug.GenericMenu.OnInitialize {"Initialize"} SET Root.CreateARiderDebug.GenericMenu.OnSelect {"Select"} SET Root.CreateARiderDebug.GenericMenu.OnCancel {"Cancel"} PLAY Root.CreateARiderDebug.GenericMenu.Show } } OBJECT "guiLabel" "Actions" { ////////////////////////////// // Property Visible 0 Scale 1.000000 1.000000 1.000000 Alignment 0 Spacing 1.250000 Tracking 1 Color 255 255 255 255 Angle 0 Monospace 0 ACTION "Script" "Initialize" { ////////////////////////////// // Property StartDelay 0 Script { DECLARE String itemNames DECLARE String libraryPath SET libraryPath {"assets\create\texture"} IF @....textureSet == {0} STRCAT libraryPath {"A"} IF @....textureSet == {1} STRCAT libraryPath {"B"} IF @....textureSet == {2} STRCAT libraryPath {"C"} IF @....textureSet == {3} STRCAT libraryPath {"D"} STRCAT libraryPath {".ZAL"} IF Root.PlatformID == {"PS2"} CALL createAModelGetListOfAssetsInLibrary libraryPath itemNames STRCAT items itemNames UNDECLARE itemNames UNDECLARE libraryPath } } ACTION "Script" "Select" { ////////////////////////////// // Property StartDelay 0 Script { DECLARE Sint32 modelIndex DECLARE String aspect DECLARE String libraryPath DECLARE String assetName DECLARE Sint32 assetRank DECLARE Sint32 textureLayer DECLARE String prefix SET modelIndex {0} SET aspect {"TEXTURE"} IF @....textureSet == {0} STRCAT aspect {"00"} IF @....textureSet == {1} STRCAT aspect {"01"} IF @....textureSet == {2} STRCAT aspect {"02"} IF @....textureSet == {3} STRCAT aspect {"03"} SET libraryPath {"assets\create\texture"} IF @....textureSet == {0} STRCAT libraryPath {"A"} IF @....textureSet == {1} STRCAT libraryPath {"B"} IF @....textureSet == {2} STRCAT libraryPath {"C"} IF @....textureSet == {3} STRCAT libraryPath {"D"} STRCAT libraryPath {".ZAL"} STRTOKEN assetName items selectedIndex SET assetRank {-1} IF Root.PlatformID == {"PS2"} CALL createAModelAddComponent modelIndex aspect libraryPath assetName assetRank UNDECLARE modelIndex UNDECLARE aspect UNDECLARE libraryPath UNDECLARE assetName UNDECLARE assetRank UNDECLARE textureLayer UNDECLARE prefix PLAY @...Display } } ACTION "Script" "Cancel" { ////////////////////////////// // Property StartDelay 0 Script "PLAY @...Display" } } } OBJECT "guiLabel" "RemoveTextureMenu" { ////////////////////////////// // Property Visible 0 Scale 1.000000 1.000000 1.000000 Alignment 0 Spacing 1.250000 Tracking 1 Color 255 255 255 255 Angle 0 Monospace 0 ACTION "Script" "Display" { ////////////////////////////// // Property StartDelay 0 Script { SET Root.CreateARiderDebug.menuIsActive {1} SET Root.CreateARiderDebug.GenericMenu.PathPrefix {"Root.CreateARiderDebug.TextureMenu.AddOrRemoveTextureMenu.RemoveTextureMenu.Actions"} SET Root.CreateARiderDebug.GenericMenu.Caption {"Remove Texture"} SET Root.CreateARiderDebug.GenericMenu.OnInitialize {"Initialize"} SET Root.CreateARiderDebug.GenericMenu.OnSelect {"Select"} SET Root.CreateARiderDebug.GenericMenu.OnCancel {"Cancel"} PLAY Root.CreateARiderDebug.GenericMenu.Show } } OBJECT "guiLabel" "Actions" { ////////////////////////////// // Property Visible 0 Scale 1.000000 1.000000 1.000000 Alignment 0 Spacing 1.250000 Tracking 1 Color 255 255 255 255 Angle 0 Monospace 0 ACTION "Script" "Initialize" { ////////////////////////////// // Property StartDelay 0 Script { DECLARE Sint32 modelIndex DECLARE String aspect DECLARE Sint32 assetRank SET modelIndex {0} SET aspect {"TEXTURE"} IF @....textureSet == {0} STRCAT aspect {"00"} IF @....textureSet == {1} STRCAT aspect {"01"} IF @....textureSet == {2} STRCAT aspect {"02"} IF @....textureSet == {3} STRCAT aspect {"03"} SET assetRank {-1} IF Root.PlatformID == {"PS2"} CALL createAModelGetListOfAppliedAssets modelIndex aspect assetRank items UNDECLARE modelIndex UNDECLARE aspect UNDECLARE assetRank } } ACTION "Script" "Select" { ////////////////////////////// // Property StartDelay 0 Script { DECLARE Sint32 modelIndex DECLARE String aspect DECLARE String assetName DECLARE Sint32 textureLayer SET modelIndex {0} SET aspect {"TEXTURE"} IF @....textureSet == {0} STRCAT aspect {"00"} IF @....textureSet == {1} STRCAT aspect {"01"} IF @....textureSet == {2} STRCAT aspect {"02"} IF @....textureSet == {3} STRCAT aspect {"03"} STRTOKEN assetName items selectedIndex IF Root.PlatformID == {"PS2"} CALL createAModelRemoveComponent modelIndex aspect assetName UNDECLARE modelIndex UNDECLARE aspect UNDECLARE assetName UNDECLARE textureLayer PLAY @...Display } } ACTION "Script" "Cancel" { ////////////////////////////// // Property StartDelay 0 Script "PLAY @...Display" } } } OBJECT "guiLabel" "RemoveAllTexturesMenu" { ////////////////////////////// // Property Visible 0 Scale 1.000000 1.000000 1.000000 Alignment 0 Spacing 1.250000 Tracking 1 Color 255 255 255 255 Angle 0 Monospace 0 ACTION "Script" "Display" { ////////////////////////////// // Property StartDelay 0 Script { SET Root.CreateARiderDebug.menuIsActive {1} SET Root.CreateARiderDebug.GenericMenu.PathPrefix {"Root.CreateARiderDebug.TextureMenu.AddOrRemoveTextureMenu.RemoveAllTexturesMenu.Actions"} SET Root.CreateARiderDebug.GenericMenu.Caption {"Remove All Textures"} SET Root.CreateARiderDebug.GenericMenu.OnInitialize {"Initialize"} SET Root.CreateARiderDebug.GenericMenu.OnSelect {"Select"} SET Root.CreateARiderDebug.GenericMenu.OnCancel {"Cancel"} PLAY Root.CreateARiderDebug.GenericMenu.Show } } OBJECT "guiLabel" "Actions" { ////////////////////////////// // Property Visible 0 Scale 1.000000 1.000000 1.000000 Alignment 0 Spacing 1.250000 Tracking 1 Color 255 255 255 255 Angle 0 Monospace 0 ACTION "Script" "Initialize" { ////////////////////////////// // Property StartDelay 0 Script { DECLARE Sint32 modelIndex DECLARE String aspect DECLARE Sint32 textureLayer SET modelIndex {0} SET aspect {"TEXTURE"} IF @....textureSet == {0} STRCAT aspect {"00"} IF @....textureSet == {1} STRCAT aspect {"01"} IF @....textureSet == {2} STRCAT aspect {"02"} IF @....textureSet == {3} STRCAT aspect {"03"} IF Root.PlatformID == {"PS2"} CALL createAModelRemoveAllComponents modelIndex aspect UNDECLARE modelIndex UNDECLARE aspect UNDECLARE textureLayer PLAY @...Display } } ACTION "Script" "Select" { ////////////////////////////// // Property StartDelay 0 Script "PLAY @...Display" } ACTION "Script" "Cancel" { ////////////////////////////// // Property StartDelay 0 Script "PLAY @...Display" } } } } } OBJECT "guiLabel" "WeightMenu" { ////////////////////////////// // Property OnCreate "DECLARE Sint32 lattice" OnDestroy "UNDECLARE lattice" Visible 0 Scale 1.000000 1.000000 1.000000 Alignment 0 Spacing 1.250000 Tracking 1 Color 255 255 255 255 Angle 0 Monospace 0 ACTION "Script" "Display" { ////////////////////////////// // Property StartDelay 0 Script { SET Root.CreateARiderDebug.menuIsActive {1} SET Root.CreateARiderDebug.GenericMenu.PathPrefix {"Root.CreateARiderDebug.WeightMenu.Actions"} SET Root.CreateARiderDebug.GenericMenu.Caption {"Change Weight Options"} SET Root.CreateARiderDebug.GenericMenu.OnInitialize {"Initialize"} SET Root.CreateARiderDebug.GenericMenu.OnSelect {"Select"} SET Root.CreateARiderDebug.GenericMenu.OnCancel {"Cancel"} PLAY Root.CreateARiderDebug.GenericMenu.Show } } OBJECT "guiLabel" "Actions" { ////////////////////////////// // Property Visible 0 Scale 1.000000 1.000000 1.000000 Alignment 0 Spacing 1.250000 Tracking 1 Color 255 255 255 255 Angle 0 Monospace 0 ACTION "Script" "Initialize" { ////////////////////////////// // Property StartDelay 0 Script "SET Items {\"Select Fat Lattice\\nSelect Normal Lattice\\nSelect Skinny Lattice\\nSet Weight\"}" } ACTION "Script" "Select" { ////////////////////////////// // Property StartDelay 0 Script { GOTO SelectedIndex GOTO End :0 :1 :2 SET @..lattice SelectedIndex PLAY @..SelectLatticeMenu.Display GOTO End :3 PLAY @..SelectWeightMenu.Display GOTO End :End } } ACTION "Script" "Cancel" { ////////////////////////////// // Property StartDelay 0 Script "PLAY Root.CreateARiderDebug.MainMenu.Display" } } OBJECT "guiLabel" "SelectLatticeMenu" { ////////////////////////////// // Property Visible 0 Scale 1.000000 1.000000 1.000000 Alignment 0 Spacing 1.250000 Tracking 1 Color 255 255 255 255 Angle 0 Monospace 0 ACTION "Script" "Display" { ////////////////////////////// // Property StartDelay 0 Script { SET Root.CreateARiderDebug.menuIsActive {1} SET Root.CreateARiderDebug.GenericMenu.PathPrefix {"Root.CreateARiderDebug.WeightMenu.SelectLatticeMenu.Actions"} SET Root.CreateARiderDebug.GenericMenu.Caption {"Select Lattice"} SET Root.CreateARiderDebug.GenericMenu.OnInitialize {"Initialize"} SET Root.CreateARiderDebug.GenericMenu.OnSelect {"Select"} SET Root.CreateARiderDebug.GenericMenu.OnCancel {"Cancel"} PLAY Root.CreateARiderDebug.GenericMenu.Show } } OBJECT "guiLabel" "Actions" { ////////////////////////////// // Property Visible 0 Scale 1.000000 1.000000 1.000000 Alignment 0 Spacing 1.250000 Tracking 1 Color 255 255 255 255 Angle 0 Monospace 0 ACTION "Script" "Initialize" { ////////////////////////////// // Property StartDelay 0 Script { DECLARE String libraryPath SET libraryPath {"assets\create\lattice.zal"} IF Root.PlatformID == {"PS2"} CALL createAModelGetListOfAssetsInLibrary libraryPath items UNDECLARE libraryPath } } ACTION "Script" "Select" { ////////////////////////////// // Property StartDelay 0 Script { DECLARE Sint32 modelIndex DECLARE String aspect DECLARE String libraryPath DECLARE String assetName DECLARE Sint32 assetRank SET modelIndex {0} SET aspect {"Lattices"} SET libraryPath {"assets\create\lattice.zal"} STRTOKEN assetName items selectedIndex SET assetRank @...lattice MULT assetRank {100} DIV assetRank {2} IF Root.PlatformID == {"PS2"} CALL createAModelAddComponent modelIndex aspect libraryPath assetName assetRank UNDECLARE modelIndex UNDECLARE aspect UNDECLARE libraryPath UNDECLARE assetName UNDECLARE assetRank PLAY @...Display } } ACTION "Script" "Cancel" { ////////////////////////////// // Property StartDelay 0 Script "PLAY @...Display" } } } OBJECT "guiLabel" "SelectWeightMenu" { ////////////////////////////// // Property Visible 0 Scale 1.000000 1.000000 1.000000 Alignment 0 Spacing 1.250000 Tracking 1 Color 255 255 255 255 Angle 0 Monospace 0 ACTION "Script" "Display" { ////////////////////////////// // Property StartDelay 0 Script { SET Root.CreateARiderDebug.menuIsActive {1} SET Root.CreateARiderDebug.GenericSlider.PathPrefix {"Root.CreateARiderDebug.WeightMenu.SelectWeightMenu.Actions"} SET Root.CreateARiderDebug.GenericSlider.Caption {"Select Weight"} SET Root.CreateARiderDebug.GenericSlider.OnInitialize {"Initialize"} SET Root.CreateARiderDebug.GenericSlider.OnSelect {"Select"} SET Root.CreateARiderDebug.GenericSlider.OnCancel {"Cancel"} PLAY Root.CreateARiderDebug.GenericSlider.Show } } OBJECT "guiLabel" "Actions" { ////////////////////////////// // Property Visible 0 Scale 1.000000 1.000000 1.000000 Alignment 0 Spacing 1.250000 Tracking 1 Color 255 255 255 255 Angle 0 Monospace 0 ACTION "Script" "Initialize" { ////////////////////////////// // Property StartDelay 0 Script { DECLARE Sint32 modelIndex DECLARE String propertyName DECLARE String stringValue SET propertyName {"weight"} IF Root.PlatformID == {"PS2"} CALL createAModelGetProperty modelIndex propertyName stringValue SET CurValue stringValue SET MinValue {0} SET MaxValue {100} SET IncValue {1} UNDECLARE modelIndex UNDECLARE propertyName UNDECLARE stringValue } } ACTION "Script" "Select" { ////////////////////////////// // Property StartDelay 0 Script { DECLARE Sint32 modelIndex DECLARE String propertyName DECLARE String stringValue SET propertyName {"weight"} SET stringValue CurValue IF Root.PlatformID == {"PS2"} CALL createAModelSetProperty modelIndex propertyName stringValue UNDECLARE modelIndex UNDECLARE propertyName UNDECLARE stringValue PLAY @...Display } } ACTION "Script" "Cancel" { ////////////////////////////// // Property StartDelay 0 Script "PLAY @...Display" } } } } }