mirror of
https://github.com/OpenMW/openmw.git
synced 2025-01-19 19:53:53 +00:00
Implement EnableLevelupMenu to trigger level-up
This commit is contained in:
parent
c883a73d30
commit
a619cff615
4 changed files with 6 additions and 2 deletions
|
@ -443,5 +443,6 @@ op 0x20002fc: RemoveFromLevCreature
|
||||||
op 0x20002fd: AddToLevItem
|
op 0x20002fd: AddToLevItem
|
||||||
op 0x20002fe: RemoveFromLevItem
|
op 0x20002fe: RemoveFromLevItem
|
||||||
op 0x20002ff: SetFactionReaction
|
op 0x20002ff: SetFactionReaction
|
||||||
|
op 0x2000300: EnableLevelupMenu
|
||||||
|
|
||||||
opcodes 0x2000300-0x3ffffff unused
|
opcodes 0x2000301-0x3ffffff unused
|
||||||
|
|
|
@ -231,6 +231,8 @@ namespace MWScript
|
||||||
new OpShowDialogue (MWGui::GM_Race));
|
new OpShowDialogue (MWGui::GM_Race));
|
||||||
interpreter.installSegment5 (Compiler::Gui::opcodeEnableStatsReviewMenu,
|
interpreter.installSegment5 (Compiler::Gui::opcodeEnableStatsReviewMenu,
|
||||||
new OpShowDialogue (MWGui::GM_Review));
|
new OpShowDialogue (MWGui::GM_Review));
|
||||||
|
interpreter.installSegment5 (Compiler::Gui::opcodeEnableLevelupMenu,
|
||||||
|
new OpShowDialogue (MWGui::GM_Levelup));
|
||||||
|
|
||||||
interpreter.installSegment5 (Compiler::Gui::opcodeEnableInventoryMenu,
|
interpreter.installSegment5 (Compiler::Gui::opcodeEnableInventoryMenu,
|
||||||
new OpEnableWindow (MWGui::GW_Inventory));
|
new OpEnableWindow (MWGui::GW_Inventory));
|
||||||
|
|
|
@ -215,7 +215,7 @@ namespace Compiler
|
||||||
extensions.registerInstruction ("enablestatsmenu", "", opcodeEnableStatsMenu);
|
extensions.registerInstruction ("enablestatsmenu", "", opcodeEnableStatsMenu);
|
||||||
|
|
||||||
extensions.registerInstruction ("enablerest", "", opcodeEnableRest);
|
extensions.registerInstruction ("enablerest", "", opcodeEnableRest);
|
||||||
extensions.registerInstruction ("enablelevelupmenu", "", opcodeEnableRest);
|
extensions.registerInstruction ("enablelevelupmenu", "", opcodeEnableLevelupMenu);
|
||||||
|
|
||||||
extensions.registerInstruction ("showrestmenu", "", opcodeShowRestMenu, opcodeShowRestMenuExplicit);
|
extensions.registerInstruction ("showrestmenu", "", opcodeShowRestMenu, opcodeShowRestMenuExplicit);
|
||||||
|
|
||||||
|
|
|
@ -185,6 +185,7 @@ namespace Compiler
|
||||||
const int opcodeEnableMapMenu = 0x2000015;
|
const int opcodeEnableMapMenu = 0x2000015;
|
||||||
const int opcodeEnableStatsMenu = 0x2000016;
|
const int opcodeEnableStatsMenu = 0x2000016;
|
||||||
const int opcodeEnableRest = 0x2000017;
|
const int opcodeEnableRest = 0x2000017;
|
||||||
|
const int opcodeEnableLevelupMenu = 0x2000300;
|
||||||
const int opcodeShowRestMenu = 0x2000018;
|
const int opcodeShowRestMenu = 0x2000018;
|
||||||
const int opcodeShowRestMenuExplicit = 0x2000234;
|
const int opcodeShowRestMenuExplicit = 0x2000234;
|
||||||
const int opcodeGetButtonPressed = 0x2000137;
|
const int opcodeGetButtonPressed = 0x2000137;
|
||||||
|
|
Loading…
Reference in a new issue