mirror of
https://github.com/sfall-team/sfall.git
synced 2026-07-27 16:52:34 -07:00
Added a new flag to MainMenuFontColour option
* set bit 1 of the first byte to only change the color of version text (old behavior)
This commit is contained in:
@@ -28,7 +28,7 @@ WeaponHandlingBonus=3
|
||||
|
||||
;##############################################################################
|
||||
[Perks]
|
||||
;Set to 1 to enable modifications to perks
|
||||
;Set to 1 to enable the modifications for perks
|
||||
Enable=0
|
||||
|
||||
;Name=The name of the perk (max 63 characters)
|
||||
@@ -84,7 +84,7 @@ LCK=0
|
||||
|
||||
;##############################################################################
|
||||
[Traits]
|
||||
;Set to 1 to enable modifications to traits
|
||||
;Set to 1 to enable the modifications for traits
|
||||
Enable=0
|
||||
|
||||
;This is a modification to trait 0
|
||||
|
||||
+1
-1
@@ -382,7 +382,7 @@ CorpseDeleteTime=6
|
||||
ProcessorIdle=-1
|
||||
|
||||
;Set to 1 if using the hero appearance mod
|
||||
;Set to 2 for backward compatibility with old scripts that manually fix obj_art_fid script function for dude_obj
|
||||
;Set to 2 for backward compatibility with scripts that manually fix obj_art_fid/art_change_fid_num script functions for dude_obj
|
||||
;You can add AppChCrt.frm and AppChEdt.frm files to art\intrface\ to set a custom background for the character screen
|
||||
EnableHeroAppearanceMod=0
|
||||
|
||||
|
||||
@@ -799,9 +799,7 @@ const char* __stdcall CritterName(TGameObj* critter) {
|
||||
}
|
||||
|
||||
void SkillGetTags(int* result, DWORD num) {
|
||||
if (num > 4) {
|
||||
num = 4;
|
||||
}
|
||||
if (num > 4) num = 4;
|
||||
__asm {
|
||||
mov eax, result;
|
||||
mov edx, num;
|
||||
@@ -810,9 +808,7 @@ void SkillGetTags(int* result, DWORD num) {
|
||||
}
|
||||
|
||||
void SkillSetTags(int* tags, DWORD num) {
|
||||
if (num > 4) {
|
||||
num = 4;
|
||||
}
|
||||
if (num > 4) num = 4;
|
||||
__asm {
|
||||
mov eax, tags;
|
||||
mov edx, num;
|
||||
|
||||
+1
-1
@@ -40,7 +40,7 @@ struct sMessage {
|
||||
};
|
||||
|
||||
static const char* MsgSearch(long msgno, DWORD file) {
|
||||
if(!file) return 0;
|
||||
if (!file) return 0;
|
||||
sMessage msg = { msgno, 0, 0, 0 };
|
||||
__asm {
|
||||
lea edx, msg;
|
||||
|
||||
+2
-1
@@ -122,7 +122,8 @@ void MainMenuInit() {
|
||||
if (OverrideColour & 0xFF) {
|
||||
OverrideColour &= 0x00FF00FF;
|
||||
OverrideColour |= 0x06000000;
|
||||
SafeWrite32(0x481748, (DWORD)&OverrideColour);
|
||||
unsigned char flags = static_cast<unsigned char>((OverrideColour & 0xFF0000) >> 16);
|
||||
if (!(flags & 1)) SafeWrite32(0x481748, (DWORD)&OverrideColour);
|
||||
}
|
||||
OverrideColour2 = GetConfigInt("Misc", "MainMenuBigFontColour", 0) & 0xFF;
|
||||
if (OverrideColour2) SafeWrite32(0x481906, (DWORD)&OverrideColour2);
|
||||
|
||||
Reference in New Issue
Block a user