mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-28 06:53:40 +00:00
- fixed deprecation warnings in core scripts
Script warning, "gzdoom.pk3:zscript/ui/statscreen/statscreen.zs" line 24: Call to deprecated function CharAt Script warning, "gzdoom.pk3:zscript/ui/statscreen/statscreen.zs" line 24: Accessing deprecated function CharAt - deprecated since 4.1.0 Script warning, "gzdoom.pk3:zscript/ui/menu/search/query.zs" line 64: Call to deprecated function ToLower Script warning, "gzdoom.pk3:zscript/ui/menu/search/query.zs" line 64: Accessing deprecated function ToLower - deprecated since 4.1.0 Script warning, "gzdoom.pk3:zscript/ui/menu/search/query.zs" line 65: Call to deprecated function ToLower Script warning, "gzdoom.pk3:zscript/ui/menu/search/query.zs" line 65: Accessing deprecated function ToLower - deprecated since 4.1.0 Script warning, "gzdoom.pk3:zscript/ui/menu/conversationmenu.zs" line 202: Call to deprecated function CharAt Script warning, "gzdoom.pk3:zscript/ui/menu/conversationmenu.zs" line 202: Accessing deprecated function CharAt - deprecated since 4.1.0 Script warning, "gzdoom.pk3:zscript/ui/menu/conversationmenu.zs" line 235: Call to deprecated function CharAt Script warning, "gzdoom.pk3:zscript/ui/menu/conversationmenu.zs" line 235: Accessing deprecated function CharAt - deprecated since 4.1.0
This commit is contained in:
parent
63d30e27a6
commit
6d1a85af3c
3 changed files with 6 additions and 6 deletions
|
@ -199,7 +199,7 @@ class ConversationMenu : Menu
|
|||
goodbyestr = String.Format("$TXT_%s_%02d", goodbyestr, Random[RandomSpeech](1, NUM_RANDOM_LINES));
|
||||
}
|
||||
goodbyestr = Stringtable.Localize(goodbyestr);
|
||||
if (goodbyestr.Length() == 0 || goodbyestr.CharAt(0) == "$") goodbyestr = "Bye.";
|
||||
if (goodbyestr.Length() == 0 || goodbyestr.Left(1) == "$") goodbyestr = "Bye.";
|
||||
mResponses.Push(mResponseLines.Size());
|
||||
mResponseLines.Push(goodbyestr);
|
||||
|
||||
|
@ -232,7 +232,7 @@ class ConversationMenu : Menu
|
|||
{
|
||||
let dlgtext = String.Format("$TXT_%s_%02d", toSay, random[RandomSpeech](1, NUM_RANDOM_LINES));
|
||||
toSay = Stringtable.Localize(dlgtext);
|
||||
if (toSay.CharAt(0) == "$") toSay = Stringtable.Localize("$TXT_GOAWAY");
|
||||
if (toSay.Left(1) == "$") toSay = Stringtable.Localize("$TXT_GOAWAY");
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
|
@ -61,10 +61,10 @@ class os_Query
|
|||
|
||||
private static bool contains(string str, string substr)
|
||||
{
|
||||
str .toLower();
|
||||
substr.toLower();
|
||||
let lowerstr = str .MakeLower();
|
||||
let lowersubstr = substr.MakeLower();
|
||||
|
||||
bool contains = (str.IndexOf(substr) != -1);
|
||||
bool contains = (lowerstr.IndexOf(lowersubstr) != -1);
|
||||
|
||||
return contains;
|
||||
}
|
||||
|
|
|
@ -21,7 +21,7 @@ struct PatchInfo play version("2.5")
|
|||
// The default settings for this are marked with a *.
|
||||
// If some mod changes this it is assumed that it doesn't provide any localization for the map name in a language not supported by the font.
|
||||
String s = gifont.fontname;
|
||||
if (s.CharAt(0) != "*")
|
||||
if (s.Left(1) != "*")
|
||||
mFont = Font.GetFont(gifont.fontname);
|
||||
else if (generic_ui)
|
||||
mFont = NewSmallFont;
|
||||
|
|
Loading…
Reference in a new issue