Skip to content

Commit

Permalink
Update test.lua
Browse files Browse the repository at this point in the history
  • Loading branch information
thisdp committed Jan 13, 2022
1 parent a5f2e7d commit 726b56f
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions test.lua
Original file line number Diff line number Diff line change
Expand Up @@ -573,11 +573,18 @@ end

---------------Language Test
function LanguageChangeInComboBoxTest()
languageTab = {wtf="DGS %rep%"}
languageTab2 = {wtf="Test %rep% %rep%"}
languageTab = {
wtf="DGS %rep%",
fontX = "default",
}
languageTab2 = {
wtf="Test %rep% %rep%",
fontX = "default",
}
dgsSetTranslationTable("test",languageTab)
dgsSetAttachTranslation("test")
combobox = dgsCreateComboBox(500,400,200,30,{"wtf","1"},false)
dgsSetFont(combobox,{"fontX"})
for i=1,20 do
dgsComboBoxAddItem(combobox,{"wtf",i})
end
Expand Down

0 comments on commit 726b56f

Please sign in to comment.