Skip to content

Commit

Permalink
Fixed a bug where the font didn't reset when using its reset button, …
Browse files Browse the repository at this point in the history
…fixed a bug where reset buttons' texts didn't always show up correctly
  • Loading branch information
Vertex-Client authored Mar 13, 2017
1 parent fb58ef1 commit cdb2880
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Vertex Client PE.js
Original file line number Diff line number Diff line change
Expand Up @@ -11603,6 +11603,11 @@ function settingButton(text, desc, parentWidth, resetFunc) {
var resetButton;
if(resetFunc) {
resetButton = clientButton("Reset");
resetButton.setEllipsize(TextUtils_.TruncateAt.MARQUEE);
resetButton.setMarqueeRepeatLimit(-1);
resetButton.setSingleLine();
resetButton.setHorizontallyScrolling(true);
resetButton.setSelected(true);
resetButton.setOnClickListener(new View_.OnClickListener() {
onClick: function(viewArg) {
resetFunc(viewArg);
Expand Down Expand Up @@ -14207,6 +14212,8 @@ function settingsScreen() {
function(viewArg) {
fontSetting = "default";
fontSettingButton.setText("Default");
VertexClientPE.font = fontSetting=="minecraft"?Typeface_.createFromFile(new File_(PATH, "minecraft.ttf")):VertexClientPE.defaultFont;
MinecraftButtonLibrary.ProcessedResources.font = VertexClientPE.font;
}
);
var fontSettingButton = fontSettingFunc.getButton();
Expand Down

0 comments on commit cdb2880

Please sign in to comment.