越南语变音字母简化函数改为全unicode版本
限制自定义菜单背景选择范围 微调自定义背景设置ui 整理代码
This commit is contained in:
18
main.lua
18
main.lua
@@ -49,19 +49,15 @@ SCR.setSize(1280,720) -- Initialize Screen size
|
||||
BGM.setMaxSources(5)
|
||||
VOC.setDiversion(.62)
|
||||
|
||||
ChangeButtonColorIfThemeUsed=function()
|
||||
if SCN.cur~='net_game' and SCN.cur~='custom_field' then
|
||||
local colorList=THEME.getThemeColor()
|
||||
if colorList then
|
||||
for _,W in next,SCN.scenes[SCN.cur].widgetList do
|
||||
if W.color then
|
||||
W.color=colorList[math.random(#colorList)]
|
||||
end
|
||||
end
|
||||
WIDGET.setOnChange(function()
|
||||
if SCN.cur=='net_game' or SCN.cur=='custom_field' then return end
|
||||
local colorList=THEME.getThemeColor()
|
||||
if colorList then
|
||||
for _,W in next,SCN.scenes[SCN.cur].widgetList do
|
||||
W.color=W.color and colorList[math.random(#colorList)]
|
||||
end
|
||||
end
|
||||
end
|
||||
WIDGET.setOnChange(ChangeButtonColorIfThemeUsed)
|
||||
end)
|
||||
|
||||
-- Create shortcuts
|
||||
setFont=FONT.set
|
||||
|
||||
Reference in New Issue
Block a user