Path: blob/main/Scripts/Menu/TrophieList.txt
1319 views
//----------------Sonic CD Trophie List Script----------------//1//--------Scripted by Christian Whitehead 'The Taxman'--------//2//-------Unpacked By Rubberduckycooly's Script Unpacker-------//3//---This Object is normally only used by WP7 Data files------//45// Aliases6#alias Object.Value1 : Object.AchievementUnlocked //[[Actually i have no clue about this one]]7#alias Object.Value2 : Object.TrophieSheet8#alias Object.Value3 : Object.HelpTextSheet910#alias Object[0].Value2 : TrophiesMenu.SelectionPos1112// Priority13#alias 1 : PRIORITY_ACTIVE1415// Online Menus16#alias 0 : ONLINEMENU_ACHIEVEMENTS171819sub ObjectDraw20Object.YPos = Object.PropertyValue21Object.YPos *= 0x30000022Object.YPos -= TrophiesMenu.SelectionPos23Object.YPos += 0x48000024Object.Scale = 1282526Object.SpriteSheet = Object.TrophieSheet27if Object.AchievementUnlocked == true28DrawSpriteFX(Object.Frame, FX_SCALE, Object.XPos, Object.YPos)29else30DrawSpriteFX(12, FX_SCALE, Object.XPos, Object.YPos)31end if3233TempValue0 = Object.XPos34TempValue0 >>= 1635TempValue0 -= Screen.XOffset36TempValue0 += 203738TempValue1 = Object.YPos39TempValue1 >>= 1640TempValue1 -= Screen.YOffset41TempValue1 -= 134243TempValue2 = Object.PropertyValue44TempValue2 <<= 14546Object.SpriteSheet = Object.HelpTextSheet4748DrawText(MENU_2, TempValue0, TempValue1, 128, 41, TempValue2, 1)49TempValue1 += 1550TempValue2++51DrawText(MENU_2, TempValue0, TempValue1, 92, 41, TempValue2, 1)52end sub535455sub ObjectStartup56LoadSpriteSheet("Menu/Trophies.gif")57TempValue0 = Object.SpriteSheet58LoadSpriteSheet("Menu/HelpText.gif")59TempValue1 = Object.SpriteSheet6061SpriteFrame(-64, -64, 128, 128, 0, 0) // #0 - 88 Miles Per Hour Icon62SpriteFrame(-64, -64, 128, 128, 128, 0) // #1 - One Hug is Enough Icon63SpriteFrame(-64, -64, 128, 128, 256, 0) // #2 - Paradise Found Icon64SpriteFrame(-64, -64, 128, 128, 384, 0) // #3 - Take the High Road Icon65SpriteFrame(-64, -64, 128, 128, 0, 128) // #4 - King of the Rings Icon66SpriteFrame(-64, -64, 128, 128, 128, 128) // #5 - Statue Saviour Icon67SpriteFrame(-64, -64, 128, 128, 256, 128) // #6 - Heavy Metal Icon68SpriteFrame(-64, -64, 128, 128, 384, 128) // #7 - All Stages Clear! Icon69SpriteFrame(-64, -64, 128, 128, 0, 256) // #8 - Treasure Hunter Icon70SpriteFrame(-64, -64, 128, 128, 128, 256) // #9 - Dr. Eggman Got Served Icon71SpriteFrame(-64, -64, 128, 128, 256, 256) // #10 - Just In Time! Icon72SpriteFrame(-64, -64, 128, 128, 384, 256) // #11 - Saviour of the Planet Icon73SpriteFrame(-64, -64, 128, 128, 0, 384) // #12 - Lock Icon7475SetupMenu(MENU_2, 0, 3, 1)7677AddMenuEntry(MENU_2, "88 Miles Per Hour", 0)78AddMenuEntry(MENU_2, "Travel through time.", 0)7980AddMenuEntry(MENU_2, "Just One Hug is Enough", 0)81AddMenuEntry(MENU_2, "Get a hug from Amy.", 0)8283AddMenuEntry(MENU_2, "Paradise Found", 0)84AddMenuEntry(MENU_2, "Complete a Zone in the Good Future.", 0)8586AddMenuEntry(MENU_2, "Take the High Road", 0)87AddMenuEntry(MENU_2, "Pass the upper signpost in Collision Chaos Zone 2.", 0)8889AddMenuEntry(MENU_2, "King of the Rings", 0)90AddMenuEntry(MENU_2, "Collect 200 Rings.", 0)9192AddMenuEntry(MENU_2, "Statue Saviour", 0)93AddMenuEntry(MENU_2, "Find the angel statue in Wacky Workbench.", 0)9495AddMenuEntry(MENU_2, "Heavy Metal", 0)96AddMenuEntry(MENU_2, "Defeat Metal Sonic without getting hurt.", 0)9798AddMenuEntry(MENU_2, "All Stages Clear!", 0)99AddMenuEntry(MENU_2, "Finish the game.", 0)100101AddMenuEntry(MENU_2, "Treasure Hunter", 0)102AddMenuEntry(MENU_2, "Collect all the Time Stones.", 0)103104AddMenuEntry(MENU_2, "Dr. Eggman Got Served", 0)105AddMenuEntry(MENU_2, "Destroy Dr. Eggman's final machine.", 0)106107AddMenuEntry(MENU_2, "Just In Time!", 0)108AddMenuEntry(MENU_2, "Complete the Time Attack mode in under 25 minutes.", 0)109110AddMenuEntry(MENU_2, "Saviour of the Planet", 0)111AddMenuEntry(MENU_2, "Destroy all the robot transporters and Metal Sonic holograms in the past.", 0)112113LoadOnlineMenu(ONLINEMENU_ACHIEVEMENTS)114115// Used to be below LoadSpriteSheet, moved here for consistency116ArrayPos0 = 32117while ArrayPos0 < 1056118if Object[ArrayPos0].Type == TypeName[Trophie List]119Object[ArrayPos0].TrophieSheet = TempValue0120Object[ArrayPos0].HelpTextSheet = TempValue1121Object[ArrayPos0].DrawOrder = 2122Object[ArrayPos0].Priority = PRIORITY_ACTIVE123if Screen.XSize >= 384124Object[ArrayPos0].XPos -= 0x100000125end if126end if127ArrayPos0++128loop129end sub130131132// ========================133// Editor Subs134// ========================135136sub RSDKDraw137Object.Scale = 128138TempValue0 = Object.EntityNo139TempValue0--140DrawSpriteFX(TempValue0, FX_SCALE, Object.XPos, Object.YPos)141end sub142143144sub RSDKLoad145LoadSpriteSheet("Menu/Trophies.gif")146147SpriteFrame(-64, -64, 128, 128, 0, 0) // #0 - 88 Miles Per Hour Icon148SpriteFrame(-64, -64, 128, 128, 128, 0) // #1 - One Hug is Enough Icon149SpriteFrame(-64, -64, 128, 128, 256, 0) // #2 - Paradise Found Icon150SpriteFrame(-64, -64, 128, 128, 384, 0) // #3 - Take the High Road Icon151SpriteFrame(-64, -64, 128, 128, 0, 128) // #4 - King of the Rings Icon152SpriteFrame(-64, -64, 128, 128, 128, 128) // #5 - Statue Saviour Icon153SpriteFrame(-64, -64, 128, 128, 256, 128) // #6 - Heavy Metal Icon154SpriteFrame(-64, -64, 128, 128, 384, 128) // #7 - All Stages Clear! Icon155SpriteFrame(-64, -64, 128, 128, 0, 256) // #8 - Treasure Hunter Icon156SpriteFrame(-64, -64, 128, 128, 128, 256) // #9 - Dr. Eggman Got Served Icon157SpriteFrame(-64, -64, 128, 128, 256, 256) // #10 - Just In Time! Icon158SpriteFrame(-64, -64, 128, 128, 384, 256) // #11 - Saviour of the Planet Icon159SpriteFrame(-64, -64, 128, 128, 0, 384) // #12 - Lock Icon160161SetVariableAlias(ALIAS_VAR_PROPVAL, "unused")162end sub163164165