Skip to content

Commit

Permalink
Fix some more errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Tempo-anon committed Aug 4, 2024
1 parent a3131b6 commit 33038bd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/ui/egg-gacha-ui-handler.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import BattleScene from "../battle-scene";
import { Mode } from "./ui";
import { TextStyle, addTextObject, getEggTierTextTint } from "./text";
import { TextStyle, addTextObject, getEggTierTextTint, getTextStyleOptions } from "./text";
import MessageUiHandler from "./message-ui-handler";
import * as Utils from "../utils";
import { Egg, getLegendaryGachaSpeciesForTimestamp, IEggOptions } from "../data/egg";
Expand Down
2 changes: 1 addition & 1 deletion src/ui/modifier-select-ui-handler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ export default class ModifierSelectUiHandler extends AwaitableUiHandler {

const canvas = document.createElement("canvas");
const context = canvas.getContext("2d");
const [ , styleOptions, , , ] = getTextStyleOptions(TextStyle.PARTY, (this.scene as BattleScene).uiTheme);
const styleOptions = getTextStyleOptions(TextStyle.PARTY, (this.scene as BattleScene).uiTheme).styleOptions;
context.font = styleOptions.fontSize + "px " + styleOptions.fontFamily;
this.transferButtonWidth = context.measureText(i18next.t("modifierSelectUiHandler:transfer")).width;
this.checkButtonWidth = context.measureText(i18next.t("modifierSelectUiHandler:checkTeam")).width;
Expand Down

0 comments on commit 33038bd

Please sign in to comment.