Skip to content

Commit d10bb92

Browse files
committed
update for submod updater
1 parent 43b5ea2 commit d10bb92

File tree

3 files changed

+18
-3
lines changed

3 files changed

+18
-3
lines changed
File renamed without changes.

README.md renamed to game/Submods/All Scrollable Menus/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,5 +26,7 @@ This submod replaces the standard Ren'Py menus with your choice of the following
2626
##### Sample:
2727
![image](https://cdn.discordapp.com/attachments/609579661847953430/734161834810277948/screenshot0213.png)
2828

29+
This submod is compatible with the [Submod Updater Plugin](https://github.com/Booplicate/MAS-Submods-SubmodUpdaterPlugin/releases/latest)! Give it an install to make updating this submod easier.
30+
2931
### Please report any and all problems in the `issues` tab.
3032
###### Thank you

game/Submods/All Scrollable Menus/all_menus_are_gen_scrollable.rpy

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
default persistent._gsm_menu_style = gsm_utils.TYPE_SCROLLABLE
22

33
init -990 python in mas_submod_utils:
4-
Submod(
4+
gsm_submod = Submod(
55
author="multimokia",
66
name="All Gen Scrollable Menus",
77
description="A submod which converts all menus to gen-scrollable-menus so Monika's face is never hidden.",
@@ -13,6 +13,21 @@ init -990 python in mas_submod_utils:
1313
}
1414
)
1515

16+
init -989 python in gsm_utils:
17+
import store
18+
19+
#Register the updater if needed
20+
if store.mas_submod_utils.isSubmodInstalled("Submod Updater Plugin"):
21+
store.sup_utils.SubmodUpdater(
22+
submod=store.mas_submod_utils.gsm_submod,
23+
user_name="multimokia",
24+
repository_name="MAS-Util-Consistent-Menus",
25+
tag_formatter=lambda x: x[x.index('_') + 1:],
26+
update_dir="",
27+
attachment_id=None,
28+
)
29+
30+
1631
#START: Update scripts
1732
label multimokia_all_gen_scrollable_menus_v1_0_0(version="v1_0_0"):
1833
return
@@ -51,8 +66,6 @@ screen gsm_settings():
5166
selected persistent._gsm_menu_style == gsm_utils.TYPE_UNOBSTRUCTED_CHOICE_MENU
5267

5368
init -1 python in gsm_utils:
54-
import store
55-
5669
TYPE_SCROLLABLE = "mas_gen_scrollable_menu"
5770
TYPE_CHOICE_MENU = "talk_choice"
5871
TYPE_UNOBSTRUCTED_CHOICE_MENU = "unobstructed_choice"

0 commit comments

Comments
 (0)