Added emotion normalization and URL config.
This commit is contained in:
@@ -75,11 +75,11 @@ style frame:
|
||||
padding gui.frame_borders.padding
|
||||
background Frame("gui/frame.png", gui.frame_borders, tile=gui.frame_tile)
|
||||
|
||||
style my_input:
|
||||
is input
|
||||
color "#3399ff"
|
||||
hover_color "#3399ff"
|
||||
size 28
|
||||
style my_input:
|
||||
is input
|
||||
color "#3399ff"
|
||||
hover_color "#3399ff"
|
||||
size 28
|
||||
|
||||
style input_button:
|
||||
is button
|
||||
@@ -740,14 +740,15 @@ style slot_button_text:
|
||||
##
|
||||
## https://www.renpy.org/doc/html/screen_special.html#preferences
|
||||
|
||||
screen preferences():
|
||||
|
||||
tag menu
|
||||
|
||||
default api_key_value = FieldInputValue(persistent, "api_key", default=False)
|
||||
default model_value = FieldInputValue(persistent, "model", default=False)
|
||||
|
||||
use game_menu(_("Preferences"), scroll="viewport"):
|
||||
screen preferences():
|
||||
|
||||
tag menu
|
||||
|
||||
default api_key_value = FieldInputValue(persistent, "api_key", default=False)
|
||||
default model_value = FieldInputValue(persistent, "model", default=False)
|
||||
default url_value = FieldInputValue(persistent, "base_url", default=False)
|
||||
|
||||
use game_menu(_("Preferences"), scroll="viewport"):
|
||||
|
||||
vbox:
|
||||
|
||||
@@ -788,32 +789,45 @@ screen preferences():
|
||||
|
||||
bar value Preference("auto-forward time")
|
||||
|
||||
label _("LM Studio API Key")
|
||||
|
||||
button:
|
||||
action [api_key_value.Enable(), model_value.Disable()]
|
||||
key_events True
|
||||
|
||||
input:
|
||||
id "api_key_input"
|
||||
value api_key_value
|
||||
style "my_input"
|
||||
xsize 700
|
||||
pixel_width 700
|
||||
|
||||
|
||||
label _("LM Studio model")
|
||||
|
||||
button:
|
||||
action [model_value.Enable(), api_key_value.Disable()]
|
||||
key_events True
|
||||
|
||||
input:
|
||||
id "model_input"
|
||||
value model_value
|
||||
style "my_input"
|
||||
xsize 700
|
||||
pixel_width 700
|
||||
label _("LM Studio base URL")
|
||||
|
||||
button:
|
||||
action [url_value.Enable(), model_value.Disable(), api_key_value.Disable()]
|
||||
key_events True
|
||||
|
||||
input:
|
||||
id "url_input"
|
||||
value url_value
|
||||
style "my_input"
|
||||
xsize 700
|
||||
pixel_width 700
|
||||
|
||||
label _("LM Studio API Key")
|
||||
|
||||
button:
|
||||
action [url_value.Disable(), api_key_value.Enable(), model_value.Disable()]
|
||||
key_events True
|
||||
|
||||
input:
|
||||
id "api_key_input"
|
||||
value api_key_value
|
||||
style "my_input"
|
||||
xsize 700
|
||||
pixel_width 700
|
||||
|
||||
|
||||
label _("LM Studio model")
|
||||
|
||||
button:
|
||||
action [url_value.Disable(), model_value.Enable(), api_key_value.Disable()]
|
||||
key_events True
|
||||
|
||||
input:
|
||||
id "model_input"
|
||||
value model_value
|
||||
style "my_input"
|
||||
xsize 700
|
||||
pixel_width 700
|
||||
|
||||
vbox:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user