custom settings menu

RoooodWorks

Devil King
Veteran
Joined
Jan 24, 2015
Messages
343
Reaction score
271
First Language
english
Primarily Uses
N/A
So i used the custom menus in the visual novel scene-based built-in UI Template but for some reason the audio settings don't work even in the new project, i tried clicking and dragging but it doesn't work, works fine for the text based stuff, but not audio settings. Are they implemented or does it just not work on my end. Any help to fix this is appreciated. nw_ktEZqXPVGv.pngWGgPiFOEJR.pngnw_MqWnijupSo.png
These are the current settings. Code used in spoiler.
Code:
Comment |
--------------------------
In the scene we make our settings menu. We use an image-map to keep things simple. Feel free to use pictures, videos, hotspots, etc. to make it more dynamic.We add hotspots on the image-map for ON/OFF like settings. Whenever a hotspot is clicked, a switch is turned ON/OFF and we jump to the approriate label to check the switches and use Set Game Data command to change the settings interally.For each slider, we create an independent 20x23 pixel draggable hotspot. The track-rect covers the entire slider-area, means that the 20x23 pixel hotspot can be dragged only horizontal and cannot leave the left and right bounds of the slider. If a hotspot is draggable, we can store the position of the hotspot as a percentage in a variable. That percentage is 0% if the hotspot hits the left-edge of the track-rect and 100% if the hotspot hits the right-edge of the track-rect. For Example: For the Text Speed slider, we store the percentage in local number variable "0001: Text Speed X".Whenever the hotspot is dragged, we jump to the appropriate "On Drag - XXX" label and call the "Update Slider" common event. We pass the percentage value, the max. value of the settings as parameter so that common event can update the visual representation of the slider. That common event will also convert the percentage-value into the correct internal value and stores it into the global variable we pass as parameter. So after we called that common event, the global variable contains the correct internal value so we can use that variable as input for Set Game Data command. Check out "Update Slider" common event in database.
==========================
Freeze Screen |
==========================
Show Image Map | Number: 100 | Position: Predefined | Top-Left | Hotspots: 9 Hotspots | Duration: 0ms | Continue
==========================
Input Data | Field: Button - A | Store in: G[0001: Confirmation Result]
==========================
Add Hotspot | Number: 0 | Shape: Rectangle | Position: Direct | 1076, 364, 20, 16 | On Click: Jump To | Label: None |
==========================
Show Picture | Number: 0 | File: slider_hover | Anchor: Top-Left | Position: Direct | 817, 363 | Duration: 0ms | Continue
==========================
Add Hotspot | Number: 1 | Shape: Rectangle | Position: Direct | 1076, 396, 20, 16 | On Click: Jump To | Label: None |
==========================
Show Picture | Number: 1 | File: slider_hover | Anchor: Top-Left | Position: Calculated | X: 817 | Y: 397 | Duration: 0ms | Continue
==========================
Add Hotspot | Number: 2 | Shape: Rectangle | Position: Direct | 1128, 563, 20, 23 | On Click: Jump To | Label: None |
==========================
Show Picture | Number: 2 | File: slider_hover | Anchor: Top-Left | Position: Calculated | X: 817 | Y: 493 | Duration: 0ms | Continue
==========================
Add Hotspot | Number: 3 | Shape: Rectangle | Position: Direct | 1128, 607, 20, 23 | On Click: Jump To | Label: None |
==========================
Show Picture | Number: 3 | File: slider_hover | Anchor: Top-Left | Position: Calculated | X: 817 | Y: 527 | Duration: 0ms | Wait
==========================
Add Hotspot | Number: 4 | Shape: Rectangle | Position: Direct | 1128, 652, 20, 23 | On Click: Jump To | Label: None |
==========================
Show Picture | Number: 4 | File: slider_hover | Anchor: Top-Left | Position: Calculated | X: 817 | Y: 561 | Duration: 0ms | Wait
==========================
Wait | Duration: 1ms
==========================
Get Game Data | Field: Settings - Fullscreen Mode | Store in: L[0002: Display - Fullscreen]
==========================
Get Game Data | Field: Settings - Fullscreen Mode | Store in: L[0001: Display - Window]
==========================
Switch | Target: Switch | Switch: L[0001: Display - Window] | Value: ON/OFF Trigger
==========================
Get Game Data | Field: Settings - Allow Skip Unread | Store in: L[0003: Skip Msg - All Msg.]
==========================
Get Game Data | Field: Settings - Allow Skip Unread | Store in: L[0004: Skip Msg - Seen Msg.]
==========================
Switch | Target: Switch | Switch: L[0004: Skip Msg - Seen Msg.] | Value: ON/OFF Trigger
==========================
Get Game Data | Field: Settings - Choice Skip | Store in: L[0005: Skip Choices]
==========================
Get Game Data | Field: Settings - Voice Skip | Store in: L[0006: Skip Voices]
==========================
Get Game Data | Field: Settings - Message Speed | Store in: L[0001: Text Speed X] |
==========================
Get Game Data | Field: Settings - Auto Message Duration | Store in: L[0003: Auto Message X] |
==========================
Get Game Data | Field: Settings - Music Volume | Store in: L[0004: BGM Volume X] |
==========================
Get Game Data | Field: Settings - SE Volume | Store in: L[0005: SE Volume X] |
==========================
Get Game Data | Field: Settings - Voice Volume | Store in: L[0006: Voice Volume X] |
==========================
Number Variable | Target: Variable | Variable: L[0001: Text Speed X] | Operation: Mul | Source: Value | Value: 25 |
==========================
Number Variable | Target: Variable | Variable: L[0003: Auto Message X] | Operation: Mul | Source: Value | Value: 25 |
==========================
Call Common Event | Update Slider | Value: L[0001: Text Speed X] | Picture ID: 0 | Max. Value: 4 | Store in: 1
==========================
Call Common Event | Update Slider | Value: L[0003: Auto Message X] | Picture ID: 1 | Max. Value: 4 | Store in: 1
==========================
Call Common Event | Update Slider | Value: L[0004: BGM Volume X] | Picture ID: 2 | Max. Value: 100 | Store in: 1
==========================
Call Common Event | Update Slider | Value: L[0005: SE Volume X] | Picture ID: 3 | Max. Value: 100 | Store in: 1
==========================
Call Common Event | Update Slider | Value: L[0006: Voice Volume X] | Picture ID: 4 | Max. Value: 100 | Store in: 1
==========================
Wait | Duration: 20ms
==========================
Screen Transition | File: None | Vague: 30 | Duration: 500ms
==========================
Idle |
==========================
Label | Name: back
==========================
Save Settings |
==========================
Switch | Target: Switch | Switch: G[0005: In Settings Menu] | Value: OFF
==========================
Previous Scene |
==========================
Idle |
==========================
Label | Name: save
==========================
Change Scene | Scene: Save Menu | Save Previous: Yes
==========================
Idle |
==========================
Label | Name: load
==========================
Change Scene | Scene: Load Menu | Save Previous: Yes
==========================
Idle |
==========================
Label | Name: title
==========================
Call Common Event | Confirm | Message Image: Prompt_Quit | Action: Back to Title | Store in: 0
==========================
Idle |
==========================
Label | Name: reset_global
==========================
Call Common Event | Confirm | Message Image: Prompt_Confirm_SaveLoad | Action: Reset Global Data | Store in: 0
==========================
Idle |
==========================
Comment |
--------------------------
Here we Change the settings
==========================
Label | Name: display_window
==========================
Switch | Target: Switch | Switch: L[0002: Display - Fullscreen] | Value: OFF
==========================
Set Game Data | Field: Settings - Fullscreen Mode | Set To: OFF |
==========================
Idle |
==========================
Label | Name: display_fullscreen
==========================
Switch | Target: Switch | Switch: L[0001: Display - Window] | Value: OFF
==========================
Set Game Data | Field: Settings - Fullscreen Mode | Set To: ON |
==========================
Idle |
==========================
Label | Name: skipmsg_all_msg
==========================
Switch | Target: Switch | Switch: L[0004: Skip Msg - Seen Msg.] | Value: OFF
==========================
Set Game Data | Field: Settings - Allow Skip Unread | Set To: ON |
==========================
Idle |
==========================
Label | Name: skipmsg_seen_msg
==========================
Switch | Target: Switch | Switch: L[0003: Skip Msg - All Msg.] | Value: OFF
==========================
Set Game Data | Field: Settings - Allow Skip Unread | Set To: OFF |
==========================
Idle |
==========================
Label | Name: skip_voices
==========================
Set Game Data | Field: Settings - Voice Skip | Set To: L[0006: Skip Voices] |
==========================
Idle |
==========================
Label | Name: skip_choices
==========================
Set Game Data | Field: Settings - Choice Skip | Set To: L[0005: Skip Choices] |
==========================
Idle |
==========================
Comment |
--------------------------
Here we handle the slider updates
==========================
Label | Name: On Drag - Text Speed
==========================
Call Common Event | Update Slider | Value: L[0001: Text Speed X] | Picture ID: 0 | Max. Value: 5 | Store in: 1
==========================
Set Game Data | Field: Settings - Message Speed | Set To: G[0001: Confirmation Result] |
==========================
Idle |
==========================
Label | Name: On Drag - Auto Speed
==========================
Call Common Event | Update Slider | Value: L[0003: Auto Message X] | Picture ID: 1 | Max. Value: 5 | Store in: 1
==========================
Set Game Data | Field: Settings - Auto Message Duration | Set To: G[0001: Confirmation Result] |
==========================
Idle |
==========================
Label | Name: On Drag - BGM
==========================
Call Common Event | Update Slider | Value: L[0004: BGM Volume X] | Picture ID: 2 | Max. Value: 100 | Store in: 1
==========================
Set Game Data | Field: Settings - Music Volume | Set To: G[0001: Confirmation Result] |
==========================
Idle |
==========================
Label | Name: On Drag - SFX
==========================
Call Common Event | Update Slider | Value: L[0005: SE Volume X] | Picture ID: 3 | Max. Value: 100 | Store in: 1
==========================
Set Game Data | Field: Settings - SE Volume | Set To: G[0001: Confirmation Result] |
==========================
Idle |
==========================
Label | Name: On Drag - Voice
==========================
Call Common Event | Update Slider | Value: L[0006: Voice Volume X] | Picture ID: 4 | Max. Value: 100 | Store in: 1
==========================
Set Game Data | Field: Settings - Voice Volume | Set To: G[0001: Confirmation Result] |
==========================
Idle |
==========================
 

Kentou

Admin
Admin
Joined
Jan 20, 2014
Messages
231
Reaction score
54
Hi,

I think I know what you mean and there is actually a solution/guide to correct this. I think I will post it here soon for everyone.
 

Kentou

Admin
Admin
Joined
Jan 20, 2014
Messages
231
Reaction score
54
Hi again,

my apologies for this, I think in the BETA version this issue has been fixed and the sliders should work much better in general.

If you don't want to go with the BETA version, you have to do fix it manually in your current project:

1. You have to take a look at the Add Hotspot commands because those which are used for the audio sliders are positioned wrong. You have to fix the positioning of the hotspot rectangle. If you are unsure about how to correct it, just take a look at the sliders which are working fine to see how it has to be corrected.

2. (Copied from a discussion with another customer): The sliders are working not as comfortable as they do in BETA but they are working as supposed to be for Stable build. You have to grab them at the end of the black-bar. If the bar totally empty, you have to grab the beginning of the bar. There is actually an 20x16 pixels invisible slider-knob/thumb, thats whats actually going on. Since those sliders really are sliders, not bars even if they are designed as bars. Its more a design problem than a technical one for this version unfortunately. You can make the knob/thumb visible by assigning an image to the Add Hotspot commands which are creating the invisible 20x16 knob/thumb to make it much easier for the player to change the value.

In beta, the behavior of the sliders has been changed so that you can click anywhere on the slider track/bar to change it. Thats why in beta that problem doesn't exist.

So maybe in your case, the easiest way would be to design an image for the slider-knob to make it visible.
You can select a Base Image for the Add Hotspot commands I think
and also a hover image if you like. Or you can move to BETA.

Hope that helps.
 
Last edited:

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

I based this on the armor of Actor 1_7 of the RTP. Hair is from Derex and Sythian Bard.
Stream will be live shortly! Going to do another art stream tonight so that I can finish my Fauna Focus piece~ Feel free to drop by!
Humans are fallible creatures, we all know that. It's when we're forced to look at ourselves that we start to disagree. :p
Expectation: Working on boss battle.
Reality: "Look at how awful are these code and database organization. Let me clean this mess", *yet, casually adding more modules that I have no idea if I would use it later*
Trying to learn to read Japanese so I read my manga. I like to buy them without all the edits made during translation.

Forum statistics

Threads
97,865
Messages
947,457
Members
129,089
Latest member
candutekno
Top