Commit f7b4a776 authored by 熊东起's avatar 熊东起

优化2

parent 5c4831aa
......@@ -11496,10 +11496,12 @@ var StartScene = (function (_super) {
this.startBtnTewwn();
ruleBtn = new FYGE.Button(RES_1.RES.getRes("ruleBtn.png"));
ruleBtnY = 280;
if (layers_1.layers.stageHeight < 1334) {
console.log("舞台高度+++", layers_1.layers.stageHeight);
if (layers_1.layers.stageHeight < 1206) {
ruleBtnY = layers_1.layers.stageOffsetY + 280;
}
ruleBtn.position.set(-1, ruleBtnY);
console.log("按钮高度", ruleBtn.y);
this.addChild(ruleBtn);
ruleBtn.addEventListener(FYGE.MouseEvent.CLICK, function () {
ctrls_1.showPanel(rulePanel_1.RulePanel);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment