Skip to content

Commit

Permalink
Merge pull request #18 from propfeds/perch
Browse files Browse the repository at this point in the history
Hid spinning label
  • Loading branch information
propfeds authored Nov 12, 2023
2 parents ea956be + 3b76c87 commit 625acbe
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 29 deletions.
30 changes: 15 additions & 15 deletions src/theory.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4890,18 +4890,18 @@ var updateAvailability = () =>
});
}

let floatingWipLabel = ui.createLatexLabel
({
row: 0, column: 0,
rotation: -24,
horizontalOptions: LayoutOptions.CENTER,
verticalOptions: LayoutOptions.END,
// verticalTextAlignment: TextAlignment.CENTER,
margin: new Thickness(8, 40),
text: getLoc('wip'),
fontSize: 9,
textColor: Color.TEXT_MEDIUM
});
// let floatingWipLabel = ui.createLatexLabel
// ({
// row: 0, column: 0,
// rotation: -24,
// horizontalOptions: LayoutOptions.CENTER,
// verticalOptions: LayoutOptions.END,
// // verticalTextAlignment: TextAlignment.CENTER,
// margin: new Thickness(8, 40),
// text: getLoc('wip'),
// fontSize: 9,
// textColor: Color.TEXT_MEDIUM
// });

var tick = (elapsedTime: number, multiplier: number) =>
{
Expand Down Expand Up @@ -4944,8 +4944,8 @@ var tick = (elapsedTime: number, multiplier: number) =>
theory.invalidateQuaternaryValues();
break;
}
floatingWipLabel.rotateTo(-3 - Math.cos(time * Math.PI / 6) * 12,
180, Easing.LINEAR);
// floatingWipLabel.rotateTo(-3 - Math.cos(time * Math.PI / 6) * 12,
// 180, Easing.LINEAR);
managerLoadingInd.isRunning = manager.busy;
}
theory.invalidateSecondaryEquation();
Expand All @@ -4972,7 +4972,7 @@ var getEquationOverlay = () =>
cascadeInputTransparent: false,
children:
[
floatingWipLabel,
// floatingWipLabel,
managerLoadingInd,
ui.createLatexLabel
({
Expand Down
29 changes: 15 additions & 14 deletions theory.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ import { MathExpression } from './api/MathExpression';
import { Theme } from './api/Settings';
import { Sound } from './api/Sound';
import { game } from './api/Game';
import { Easing } from './api/ui/properties/Easing';
import { profilers } from './api/Profiler';
var id = 'lemmas_garden';
var getName = (language) => {
Expand Down Expand Up @@ -3780,17 +3779,18 @@ var updateAvailability = () => {
}
});
};
let floatingWipLabel = ui.createLatexLabel({
row: 0, column: 0,
rotation: -24,
horizontalOptions: LayoutOptions.CENTER,
verticalOptions: LayoutOptions.END,
// verticalTextAlignment: TextAlignment.CENTER,
margin: new Thickness(8, 40),
text: getLoc('wip'),
fontSize: 9,
textColor: Color.TEXT_MEDIUM
});
// let floatingWipLabel = ui.createLatexLabel
// ({
// row: 0, column: 0,
// rotation: -24,
// horizontalOptions: LayoutOptions.CENTER,
// verticalOptions: LayoutOptions.END,
// // verticalTextAlignment: TextAlignment.CENTER,
// margin: new Thickness(8, 40),
// text: getLoc('wip'),
// fontSize: 9,
// textColor: Color.TEXT_MEDIUM
// });
var tick = (elapsedTime, multiplier) => {
let dd, di, dg;
perfs[0 /* Profilers.TICK */].exec(() => {
Expand Down Expand Up @@ -3827,7 +3827,8 @@ var tick = (elapsedTime, multiplier) => {
theory.invalidateQuaternaryValues();
break;
}
floatingWipLabel.rotateTo(-3 - Math.cos(time * Math.PI / 6) * 12, 180, Easing.LINEAR);
// floatingWipLabel.rotateTo(-3 - Math.cos(time * Math.PI / 6) * 12,
// 180, Easing.LINEAR);
managerLoadingInd.isRunning = manager.busy;
}
theory.invalidateSecondaryEquation();
Expand All @@ -3848,7 +3849,7 @@ var getEquationOverlay = () => {
inputTransparent: true,
cascadeInputTransparent: false,
children: [
floatingWipLabel,
// floatingWipLabel,
managerLoadingInd,
ui.createLatexLabel({
row: 0, column: 0,
Expand Down

0 comments on commit 625acbe

Please sign in to comment.