Skip to content

Commit

Permalink
Make BillyYank multi portraits compatible with LeUI-IWDEE
Browse files Browse the repository at this point in the history
  • Loading branch information
r-e-d committed May 9, 2022
1 parent e9da968 commit fb410c2
Show file tree
Hide file tree
Showing 2 changed files with 91 additions and 0 deletions.
14 changes: 14 additions & 0 deletions EEUITweaks/include/BillyYankMultiPort.tpa
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ SILENT

OUTER_SET LeUIBGEE = (MOD_IS_INSTALLED ~LeUI-BG1EE.tp2~ ~0~)
OUTER_SET LeUISoD = (MOD_IS_INSTALLED ~LeUI-SoD.tp2~ ~0~)
OUTER_SET LeUIIWDEE = (MOD_IS_INSTALLED ~LeUI-IWDEE.tp2~ ~0~)

OUTER_SPRINT $UIMenuIF("MenuName") ~CHARGEN_PORTRAIT~
ACTION_MATCH 1
Expand Down Expand Up @@ -140,6 +141,19 @@ BEGIN
END
END

ACTION_IF %LeUIIWDEE% THEN
BEGIN
LOG @103001
SILENT
OUTER_SPRINT $UIMenuIF("MenuName") ~CHARGEN_GENDER~
OUTER_SPRINT $UIMenuIF("Filespec") ~%PKGNAME%/menu/BillyYankMultiPort/genderLeUI3.menu~
LAUNCH_ACTION_MACRO UIMenuReplaceMenu
ACTION_IF NOT $UIMenuIF("Succeeded") THEN
BEGIN
FAIL @103002
END
END

// Close up
LOG @13
SILENT
Expand Down
77 changes: 77 additions & 0 deletions EEUITweaks/menu/BillyYankMultiPort/genderLeUI3.menu
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
menu
{
name 'CHARGEN_GENDER'
align center center
ignoreesc
modal
onOpen
"
toggleMale = 0
toggleFemale = 0
createCharGenderHelp = 17236
Infinity_PlaySound('GAM_03')
"
onClose
"
Infinity_PlaySound('GAM_04')
"

label
{
area 0 0 539 668
mosaic 'GUICGGEN'
}
label
{
area 8 18 522 44
text "GENDER_TITLE"
text style "title"
}
label
{
area 26 386 488 178
text lua "Infinity_FetchString(createCharGenderHelp)"
text style "normal"
text color 'D'
}
button
{
area 74 140 190 168
bam GUIGEND1
sequence 0
scaleToClip
toggle toggleMale
action "toggleFemale = 0; createCharScreen:OnGenderSelectButtonClick(1)"
}
button
{
area 280 140 188 168
bam GUIGEND1
sequence 1
scaleToClip
toggle toggleFemale
action "toggleMale = 0; createCharScreen:OnGenderSelectButtonClick(2)"
}

button
{
on escape
area 70 596 202 44
text "BACK_BUTTON"
text style "button"
bam GUIBUTNT
sequenceonce lua "getRandomButtonSequence('GUIBUTNT')"
action "Infinity_PopMenu(); createCharScreen:OnCancelButtonClick()"
}
button
{
on return
area 286 596 204 44
bam GUIBUTNT
sequenceonce lua "getRandomButtonSequence('GUIBUTNT')"
text "DONE_BUTTON"
text style "button"
clickable lua "createCharScreen:IsDoneButtonClickable()"
action "Infinity_PopMenu(); createCharScreen:OnDoneButtonClick()"
}
}

0 comments on commit fb410c2

Please sign in to comment.