mirror of
https://github.com/tobspr/shapez.io.git
synced 2026-03-02 03:39:21 +00:00
Add more tutorial videos
This commit is contained in:
@@ -3,10 +3,10 @@
|
||||
background: uiResource("get_on_itch_io.svg") center center / contain no-repeat;
|
||||
@include S(width, 110px);
|
||||
@include S(height, 40px);
|
||||
@include S(top, 5px);
|
||||
@include S(top, 10px);
|
||||
pointer-events: all;
|
||||
cursor: pointer;
|
||||
@include S(left, 200px);
|
||||
@include S(left, 160px);
|
||||
|
||||
transition: all 0.12s ease-in;
|
||||
transition-property: opacity, transform;
|
||||
|
||||
@@ -83,7 +83,7 @@ export const globalConfig = {
|
||||
|
||||
debug: {
|
||||
/* dev:start */
|
||||
// fastGameEnter: true,
|
||||
fastGameEnter: true,
|
||||
noArtificialDelays: true,
|
||||
// disableSavegameWrite: true,
|
||||
// showEntityBounds: true,
|
||||
|
||||
@@ -1,13 +1,12 @@
|
||||
import { BaseHUDPart } from "../base_hud_part";
|
||||
import { makeDiv } from "../../../core/utils";
|
||||
import { cachebust } from "../../../core/cachebust";
|
||||
import { DynamicDomAttach } from "../dynamic_dom_attach";
|
||||
import { InputReceiver } from "../../../core/input_receiver";
|
||||
import { KeyActionMapper, KEYMAPPINGS } from "../../key_action_mapper";
|
||||
import { tutorialGoals } from "../../tutorial_goals";
|
||||
import { TrackedState } from "../../../core/tracked_state";
|
||||
import { makeDiv } from "../../../core/utils";
|
||||
import { KeyActionMapper, KEYMAPPINGS } from "../../key_action_mapper";
|
||||
import { BaseHUDPart } from "../base_hud_part";
|
||||
import { DynamicDomAttach } from "../dynamic_dom_attach";
|
||||
|
||||
const maxTutorialVideo = 2;
|
||||
const maxTutorialVideo = 7;
|
||||
|
||||
export class HUDPartTutorialHints extends BaseHUDPart {
|
||||
createElements(parent) {
|
||||
|
||||
@@ -23,20 +23,21 @@ export class HUDWatermark extends BaseHUDPart {
|
||||
*/
|
||||
drawOverlays(parameters) {
|
||||
const w = this.root.gameWidth;
|
||||
const x = 280 * this.root.app.getEffectiveUiScale();
|
||||
|
||||
parameters.context.fillStyle = "#f77";
|
||||
parameters.context.font = "bold " + this.root.app.getEffectiveUiScale() * 17 + "px GameFont";
|
||||
parameters.context.textAlign = "center";
|
||||
parameters.context.fillText("DEMO VERSION", w / 2, this.root.app.getEffectiveUiScale() * 35);
|
||||
// parameters.context.textAlign = "center";
|
||||
parameters.context.fillText("DEMO VERSION", x, this.root.app.getEffectiveUiScale() * 27);
|
||||
|
||||
parameters.context.font = "bold " + this.root.app.getEffectiveUiScale() * 12 + "px GameFont";
|
||||
parameters.context.textAlign = "center";
|
||||
// parameters.context.textAlign = "center";
|
||||
parameters.context.fillText(
|
||||
"Please consider to buy the full version!",
|
||||
w / 2,
|
||||
this.root.app.getEffectiveUiScale() * 55
|
||||
x,
|
||||
this.root.app.getEffectiveUiScale() * 45
|
||||
);
|
||||
|
||||
parameters.context.textAlign = "left";
|
||||
// parameters.context.textAlign = "left";
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user