Integrate new settings into existing codebase
This commit is contained in:
@@ -86,7 +86,7 @@ settings_config:
|
||||
name: Textbox volume
|
||||
description: Changes the volume when the textbox is writing.
|
||||
type: number
|
||||
default: 80
|
||||
default: 50
|
||||
min: 0
|
||||
max: 100
|
||||
increment: 5
|
||||
@@ -98,11 +98,12 @@ settings_config:
|
||||
default: 50
|
||||
min: 0
|
||||
max: 100
|
||||
increment: 5
|
||||
##
|
||||
accessibility_rp_chat_disable_colors:
|
||||
accessibility_chat_disable_colors:
|
||||
tab: Accessibility
|
||||
name: Disable colors in chat channels
|
||||
description: If enabled, hides all colors in chat channels, instead using plain white.
|
||||
name: Disable colors in chat
|
||||
description: If enabled, hides all colors in chat, instead using plain white.
|
||||
type: boolean
|
||||
default: false
|
||||
accessibility_rp_chat_space_messages:
|
||||
|
||||
@@ -98,7 +98,7 @@ settings_menu_set_text_callback:
|
||||
- define error <entry[result].created_queue.determination.get[1].if_null[null]>
|
||||
- if <[error]> != null:
|
||||
- narrate targets:<[player]> <&c><[error]>
|
||||
- wait 1t
|
||||
- wait 4t
|
||||
- run settings_menu def.player:<[player]> def.tab:<[temp_state].get[tab]> def.page:<[temp_state].get[page]>
|
||||
|
||||
settings_menu_set_text_helper:
|
||||
@@ -166,7 +166,7 @@ settings_menu_render_tabs:
|
||||
type: task
|
||||
script:
|
||||
- foreach <[tabs]> as:t:
|
||||
- define tab_button <item[book[display=<&b><[t]>]]>
|
||||
- define tab_button <item[<tern[<[t].equals[<[tab]>]>].pass[enchanted_book].fail[book]>[display=<&b><[t]>]]>
|
||||
- definemap content_entry_value:
|
||||
item: <[tab_button]>
|
||||
script: settings_menu
|
||||
@@ -182,7 +182,7 @@ settings_menu_render_settings:
|
||||
type: task
|
||||
script:
|
||||
- foreach <proc[settings_all_settings_from_page_from_tab].context[<[tab]>|<[page]>]> as:setting_key:
|
||||
- define setting_item <item[paper[display=<&3><[keys].get[<[setting_key]>].get[name]>;lore=<[keys].get[<[setting_key]>].get[description].split_lines_by_width[128].split[<&nl>].parse_tag[<&7><[parse_value]>]>]]>
|
||||
- define setting_item <item[paper[display=<&3><[keys].get[<[setting_key]>].get[name]>;lore=<[keys].get[<[setting_key]>].get[description].split_lines_by_width[<[keys].get[<[setting_key]>].get[name].text_width>].split[<&nl>].parse_tag[<&7><[parse_value]>]>]]>
|
||||
- definemap content_entry_value:
|
||||
item: <[setting_item]>
|
||||
- define position <[loop_index].mul[9].add[1]>
|
||||
|
||||
Reference in New Issue
Block a user