Skip to content

Commit

Permalink
Fix compatibility between FaydarkAutoRoll and LeUI
Browse files Browse the repository at this point in the history
  • Loading branch information
r-e-d committed Jan 28, 2024
1 parent 7630e6c commit c2b820b
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 11 deletions.
2 changes: 1 addition & 1 deletion EEUITweaks/EEUITweaks.tp2
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ ALWAYS
END
END

VERSION ~4.0.5~
VERSION ~4.0.6~

LANGUAGE
~English~ ~EEUITweaks/languages/english~ ~EEUITweaks/languages/english/setup.tra~
Expand Down
2 changes: 1 addition & 1 deletion EEUITweaks/Installation.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
EEUITweaks - Version 4.0.5
EEUITweaks - Version 4.0.6

This mod is configured as a WeiDU mod and consists of a setup program
named setup-EEUITweaks.exe and a mod files directory named EEUITweaks.
Expand Down
15 changes: 7 additions & 8 deletions EEUITweaks/include/FaydarkAutoRoll.tpa
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*******************************************************************************
* ChargenRacePatch1
*
* Adds '; chargen.selectedRace = chargen.races[ currentChargenRace ].id'
* Adds '; chargen.selectedRace = chargen.races[ currentChargenRace ].id'
* to DONE_BUTTON action
*
* Results in $UIMenuIF("Succeeded") 1 => Success, 0 => Failure
Expand All @@ -21,14 +21,13 @@ BEGIN

// Find target, insert code
COPY - ~.../CounterInLine~ ~.../CounterInLine~
REPLACE_EVALUATE CASE_INSENSITIVE ~\(^[%TAB% ]*button%MWHITE%{%MNOBRACE%+text[%TAB% ]*%MQUOTE%DONE_BUTTON%MQUOTE%%MNOBRACE%+action%MWHITE%%MDQUOTE%%MNOTDQUOTE%+\)\(%MDQUOTE%%MWHITE%}.*%MEOL%\)~
REPLACE_EVALUATE CASE_INSENSITIVE ~\(createCharScreen:OnDoneButtonClick()\)~
BEGIN
SPRINT tempstr ~%MATCH1%%adder%%MATCH2%~
SPRINT tempstr ~%MATCH1%%adder%~
SET found = 1
END
~%tempstr%~

PATCH_LOG ~Match1 = "%v1%", Match2 = "%v2%"~
// Not found, fail
ACTION_IF NOT %found% THEN
BEGIN
Expand All @@ -51,7 +50,7 @@ END
/*******************************************************************************
* ChargenClassPatch1
*
* Adds 'chargen.selectedClass = chargen.class[ currentChargenClass ].id'
* Adds '; chargen.selectedClass = chargen.class[ currentChargenClass ].id'
* to DONE_BUTTON action
*
* Results in $UIMenuIF("Succeeded") 1 => Success, 0 => Failure
Expand All @@ -61,7 +60,7 @@ DEFINE_ACTION_MACRO FaydarkAutoRoll.ChargenClassPatch1
BEGIN
LOCAL_SPRINT tempstr $UIMenuIF("Body")
LOCAL_SET found = 0
LOCAL_SPRINT adder "chargen.selectedClass = chargen.class[ currentChargenClass ].id"
LOCAL_SPRINT adder "; chargen.selectedClass = chargen.class[ currentChargenClass ].id"

// Put current menu definition into inline file
COPY - ~ToInlineTemplate~ ~.../CounterInLine~
Expand All @@ -71,9 +70,9 @@ BEGIN

// Find target, insert code
COPY - ~.../CounterInLine~ ~.../CounterInLine~
REPLACE_EVALUATE CASE_INSENSITIVE ~\(^[%TAB% ]*button%MWHITE%{%MNOBRACE%+text[%TAB% ]*%MQUOTE%DONE_BUTTON%MQUOTE%%MNOBRACE%+action%MWHITE%%MDQUOTE%%MNOTDQUOTE%+\)\(%MDQUOTE%%MWHITE%}.*%MEOL%\)~
REPLACE_EVALUATE CASE_INSENSITIVE ~\(createCharScreen:OnDoneButtonClick()\)~
BEGIN
SPRINT tempstr ~%MATCH1%%adder%%MATCH2%~
SPRINT tempstr ~%MATCH1%%adder%~
SET found = 1
END
~%tempstr%~
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# EEUITweaks User Interface Mods Collection Version 4.0.5
# EEUITweaks User Interface Mods Collection Version 4.0.6

The goal of EEUITweaks is to be a collection of the individual UI.MENU (i.e. Extended Edition 2.x+) mods/patches/tweaks from the BeamDog UI Modding forum; packaged as a single WeiDU collection. The advantages are to automate the tedious manual editing of UI.MENU, simplify multiple mod installations (particularly after an update), and to provide a single source from which many EE GUI mods can be accessed. It does NOT install the full UI replacement environments, although it does support modding them.

Expand Down

0 comments on commit c2b820b

Please sign in to comment.