|
| 1 | +#pragma once |
| 2 | + |
| 3 | +#include <Spore\UTFWin\UILayout.h> |
| 4 | +#include <Spore\Simulator\cObjectPool.h> |
| 5 | +#include <Spore\Simulator\cGameData.h> |
| 6 | + |
| 7 | +namespace UI |
| 8 | +{ |
| 9 | + enum class SimulatorRolloverID |
| 10 | + { |
| 11 | + |
| 12 | + /// Rollover_TribeTool |
| 13 | + TribeTool = 2, |
| 14 | + /// Rollover_TribeCitizen |
| 15 | + TribeCitizen = 3, |
| 16 | + /// Rollover_TribeHut |
| 17 | + TribeHut = 4, |
| 18 | + /// Rollover_Tribe_Minimap |
| 19 | + TribeMinimap = 5, |
| 20 | + /// Rollover_ScenarioVehicle or Rollover_CivVehicle |
| 21 | + Vehicle = 6, |
| 22 | + /// RolloverCity_Minimap |
| 23 | + SpaceMinimap = 7, |
| 24 | + /// SharedHealthBar, or RolloverSpaceCity in Space stage |
| 25 | + HealthBar = 8, |
| 26 | + /// Rollover_Building |
| 27 | + Building = 9, |
| 28 | + /// SharedHealthBar |
| 29 | + SharedHealthBar = 10, |
| 30 | + /// RolloverUFO |
| 31 | + UFO = 11, |
| 32 | + /// Rollover_Creature |
| 33 | + Creature = 12, |
| 34 | + /// SharedHealthBar |
| 35 | + SharedHealthBar2 = 13, |
| 36 | + /// Rollover_CRGMinimap |
| 37 | + CreatureMinimap = 14, |
| 38 | + /// SharedHealthBar |
| 39 | + SharedHealthBar3 = 15, |
| 40 | + /// Rollover_FixedObject |
| 41 | + FixedObject = 16, |
| 42 | + }; |
| 43 | + |
| 44 | + class SimulatorRollover |
| 45 | + : public Simulator::cObjectPoolClass |
| 46 | + { |
| 47 | + public: |
| 48 | + /// Returns which kind of rollover must be shown for a certain Simulator object. |
| 49 | + /// @param object |
| 50 | + /// @returns |
| 51 | + static SimulatorRolloverID GetRolloverIdForObject(Simulator::cGameData* object); |
| 52 | + |
| 53 | + static SimulatorRollover* ShowRollover(SimulatorRolloverID rolloverId); |
| 54 | + |
| 55 | + public: |
| 56 | + /* 04h */ cGameDataPtr mpObject; |
| 57 | + /* 08h */ char padding_8[0x50 - 8]; |
| 58 | + /* 50h */ UILayoutPtr mpLayout; |
| 59 | + /// Control ID 0x93310E4A |
| 60 | + /* 54h */ IWindowPtr mpMainWindow; |
| 61 | + /// Control ID 0x93310E4B |
| 62 | + /* 58h */ IWindowPtr mpFrameWindow; |
| 63 | + /// Control ID 0x31E94D0 |
| 64 | + /* 5Ch */ IWindowPtr field_5C; |
| 65 | + /// Control ID 0x933103EA |
| 66 | + /* 60h */ IWindowPtr field_60; |
| 67 | + /// Control ID 0x26E0DF0 |
| 68 | + /* 64h */ IWindowPtr field_64; |
| 69 | + /// Control ID 0x26E0DF1 |
| 70 | + /* 68h */ IWindowPtr field_68; |
| 71 | + /// Control ID 0x26E0DF2 |
| 72 | + /* 6Ch */ IWindowPtr field_6C; |
| 73 | + /// Control ID 0x26E0DF3 |
| 74 | + /* 70h */ IWindowPtr field_70; |
| 75 | + /// Control ID 0x4D039A8 |
| 76 | + /* 74h */ IWindowPtr field_74; |
| 77 | + /// Control ID 0x4B47745 |
| 78 | + /* 78h */ IWindowPtr field_78; |
| 79 | + /// Control ID 0x553E937 |
| 80 | + /* 7Ch */ IWindowPtr field_7C; |
| 81 | + /// Control ID 0x553EA66 |
| 82 | + /* 80h */ ObjectPtr field_80; |
| 83 | + /// Control ID 0x553E92B |
| 84 | + /* 84h */ IWindowPtr field_84; |
| 85 | + /// Control ID 0x553EA6E |
| 86 | + /* 88h */ IWindowPtr field_88; |
| 87 | + /// Control ID 0x657C8F8 |
| 88 | + /* 8Ch */ IWindowPtr field_8C; |
| 89 | + /// Control ID 0x46ADF86 |
| 90 | + /* 90h */ ObjectPtr field_90; // SporeAnimatedIconWin |
| 91 | + /// Control ID 0x26E0001 |
| 92 | + /* 94h */ ObjectPtr field_94; |
| 93 | + /// Control ID 0x26E0003 |
| 94 | + /* 98h */ ObjectPtr field_98; |
| 95 | + /// Control ID 0x26E0001 |
| 96 | + /* 9Ch */ ObjectPtr field_9C; |
| 97 | + /// Control ID 0x542EFB0 |
| 98 | + /* A0h */ IWindowPtr field_A0; |
| 99 | + /// Control ID 0x542EFB0 |
| 100 | + /* A4h */ ObjectPtr field_A4; |
| 101 | + /// Control ID 0x199A7D2 |
| 102 | + /* A8h */ IWindowPtr field_A8; |
| 103 | + /// Control ID 0x41F852D |
| 104 | + /* ACh */ IWindowPtr field_AC; |
| 105 | + /// Control ID 0x5E62810 |
| 106 | + /* B0h */ ObjectPtr field_B0; |
| 107 | + /// Control ID 0x6303998 |
| 108 | + /* B4h */ ObjectPtr field_B4; |
| 109 | + /* B8h */ char padding_B8[0x130 - 0xB8]; |
| 110 | + }; |
| 111 | + ASSERT_SIZE(SimulatorRollover, 0x130); |
| 112 | + |
| 113 | + namespace Addresses(SimulatorRollover) |
| 114 | + { |
| 115 | + DeclareAddress(GetRolloverIdForObject); // 0xB67960 0xB67D70 |
| 116 | + DeclareAddress(ShowRollover); // 0xB68790 0xB68BA0 |
| 117 | + } |
| 118 | +} |
0 commit comments