|
@@ -1,9 +1,7 @@
|
|
import Gamecfg from "../../../../common/gameCfg";
|
|
import Gamecfg from "../../../../common/gameCfg";
|
|
-import { gameMethod } from "../../../../common/gameMethod";
|
|
|
|
import GameDataCenter from "../../../../data/GameDataCenter";
|
|
import GameDataCenter from "../../../../data/GameDataCenter";
|
|
import { ItemEvent, UserEvent, ZhanLiEvent } from "../../../../data/const/EventConst";
|
|
import { ItemEvent, UserEvent, ZhanLiEvent } from "../../../../data/const/EventConst";
|
|
-import { ConstItem, HeadBgType, ItemKind } from "../../../../data/const/TypeConst";
|
|
|
|
-import FguiLoadMgr from "../../../../frameWork/fgui/FguiLoadMgr";
|
|
|
|
|
|
+import { ConstItem, HeadBgType } from "../../../../data/const/TypeConst";
|
|
import EventMng from "../../../../manager/EventMng";
|
|
import EventMng from "../../../../manager/EventMng";
|
|
import ClickAuEffect from "../../../../utils/ClickAuEffect";
|
|
import ClickAuEffect from "../../../../utils/ClickAuEffect";
|
|
import GameMath from "../../../../utils/GameMath";
|
|
import GameMath from "../../../../utils/GameMath";
|
|
@@ -31,8 +29,6 @@ export default class UIHeadTopView {
|
|
this.ItemGold = new ItemCount(vm.getChild("ItemGold") as fgui.GButton);
|
|
this.ItemGold = new ItemCount(vm.getChild("ItemGold") as fgui.GButton);
|
|
this.ItemDiamond = new ItemCount(vm.getChild("ItemDiamond") as fgui.GButton);
|
|
this.ItemDiamond = new ItemCount(vm.getChild("ItemDiamond") as fgui.GButton);
|
|
this.ItemSp = vm.getChild("ItemSp") as fgui.GProgressBar;
|
|
this.ItemSp = vm.getChild("ItemSp") as fgui.GProgressBar;
|
|
- // FguiLoadMgr.loadItemIcon(vm.getChild("GoldImg").asLoader, ConstItem.coin, () => { }, 0.3);
|
|
|
|
- // FguiLoadMgr.loadItemIcon(vm.getChild("DiamondImg").asLoader, ConstItem.gem, () => { }, 0.3);
|
|
|
|
}
|
|
}
|
|
|
|
|
|
public onEnable(): void {
|
|
public onEnable(): void {
|
|
@@ -63,16 +59,7 @@ export default class UIHeadTopView {
|
|
|
|
|
|
@ClickAuEffect()
|
|
@ClickAuEffect()
|
|
private OnClickHeadBtn() {
|
|
private OnClickHeadBtn() {
|
|
- // let conf = Gamecfg.taskMain.getItem(GameDataCenter.sevBack.actTaskMain?.id?.toString());
|
|
|
|
- // if (!gameMethod.isEmpty(conf) && conf.kind == TaskKind.changeName && !GameDataCenter.task.curTaskIsFinish()) {
|
|
|
|
- // //当前是改名任务并且未完成,直接打开改名界面
|
|
|
|
- // GameDataCenter.user.sendIntoSetName(() => {
|
|
|
|
- // FguiMgr.Instance.openUI(SetGenderView, ViewZorder.FULL);
|
|
|
|
- // })
|
|
|
|
- // } else {
|
|
|
|
- // FguiMgr.Instance.openUI(SetViewView, ViewZorder.FULL)
|
|
|
|
- // }
|
|
|
|
-
|
|
|
|
|
|
+
|
|
}
|
|
}
|
|
|
|
|
|
onUpUser() {
|
|
onUpUser() {
|