generated from szapp/patch-template
-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
77 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
System\dependencies.d | ||
System\MENU_OPT_CONTROLS_STAMINA.d |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
/* | ||
* Re-define the menu item class because it is not guaranteed that it exists in every mod. | ||
* Note, that the original class/prototype are not overwritten but unique symbol names are used. | ||
*/ | ||
|
||
class Patch_Stamina_C_Menu_Item /* C_Menu_Item */ { | ||
var string fontName; | ||
var string text[10]; | ||
var string backPic; | ||
var string alphaMode; | ||
var int alpha; | ||
var int type; | ||
var int onSelAction[5]; | ||
var string onSelAction_S[5]; | ||
var string onChgSetOption; | ||
var string onChgSetOptionSection; | ||
var func onEventAction[10]; | ||
var int posx; | ||
var int posy; | ||
var int dimx; | ||
var int dimy; | ||
var float sizeStartScale; | ||
var int flags; | ||
var float openDelayTime; | ||
var float openDuration; | ||
var float userFloat[4]; | ||
var string userString[4]; | ||
var int frameSizeX; | ||
var int frameSizeY; | ||
// Gothic 1.30 / Gothic 2.6 only. Not needed here | ||
// var string hideIfOptionSectionSet; | ||
// var string hideIfOptionSet; | ||
// var int hideOnValue; | ||
}; | ||
|
||
prototype Patch_Stamina_C_Menu_Item_Def(PATCH_STAMINA_C_MENU_ITEM /* C_Menu_Item */) { | ||
// Constants | ||
const string MENU_FONT_DEFAULT = "font_old_20_white.tga"; | ||
const int MENU_ITEM_TEXT = 1; | ||
const int IT_CHROMAKEYED = 1; | ||
const int IT_TRANSPARENT = 2; | ||
const int IT_SELECTABLE = 4; | ||
const int SEL_ACTION_BACK = 1; | ||
|
||
fontName = "font_old_20_white.tga"; | ||
text = ""; | ||
alphaMode = "BLEND"; | ||
alpha = 254; | ||
type = MENU_ITEM_TEXT; | ||
posx = 0; | ||
posy = 0; | ||
dimx = -1; | ||
dimy = -1; | ||
flags = IT_CHROMAKEYED|IT_TRANSPARENT|IT_SELECTABLE; | ||
openDelayTime = 0; | ||
openDuration = -1; | ||
sizeStartScale = 1; | ||
userFloat[0] = 100; | ||
userFloat[1] = 200; | ||
onSelAction[0] = SEL_ACTION_BACK; | ||
onChgSetOption = ""; | ||
onChgSetOptionSection = "INTERNAL"; | ||
hideIfOptionSectionSet = ""; | ||
Check failure on line 63 in Ninja/Stamina/System/dependencies.d GitHub Actions / Patch ValidatorReference violation: HIDEIFOPTIONSECTIONSET
Raw output
|
||
hideIfOptionSet = ""; | ||
Check failure on line 64 in Ninja/Stamina/System/dependencies.d GitHub Actions / Patch ValidatorReference violation: HIDEIFOPTIONSET
Raw output
|
||
hideOnValue = -1; | ||
Check failure on line 65 in Ninja/Stamina/System/dependencies.d GitHub Actions / Patch ValidatorReference violation: HIDEONVALUE
Raw output
|
||
frameSizeX = 0; | ||
frameSizeY = 0; | ||
}; |