فهرست منبع

主界面系统

chenwb10023 1 روز پیش
والد
کامیت
1210cb0931

BIN
assets/bundle/FGUI/Home/Home.bin


+ 2 - 15
assets/script/logic/fgui/Home/Home/UIHeadTopView.ts

@@ -1,9 +1,7 @@
 import Gamecfg from "../../../../common/gameCfg";
-import { gameMethod } from "../../../../common/gameMethod";
 import GameDataCenter from "../../../../data/GameDataCenter";
 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 ClickAuEffect from "../../../../utils/ClickAuEffect";
 import GameMath from "../../../../utils/GameMath";
@@ -31,8 +29,6 @@ export default class UIHeadTopView {
         this.ItemGold = new ItemCount(vm.getChild("ItemGold") as fgui.GButton);
         this.ItemDiamond = new ItemCount(vm.getChild("ItemDiamond") as fgui.GButton);
         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 {
@@ -63,16 +59,7 @@ export default class UIHeadTopView {
 
     @ClickAuEffect()
     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() {

+ 2 - 2
fgui-project/assets/Home/Components/HeadTopCom.xml

@@ -15,10 +15,10 @@
     <component id="n34_un8b" name="ItemGold" src="zlutc4i" fileName="Components/ItemCount.xml" pkg="rd135cfr" xy="391,100" pivot="0.5,0.5" anchor="true" scale="0.7,0.7">
       <Button icon="ui://1xjqm8v2rnf9w" selectedIcon="ui://1xjqm8v2rnf9w"/>
     </component>
-    <component id="n35_un8b" name="ItemDiamond" src="zlutc4i" fileName="Components/ItemCount.xml" pkg="rd135cfr" xy="533,100" pivot="0.5,0.5" anchor="true" scale="0.7,0.7">
+    <component id="n35_un8b" name="ItemDiamond" src="zlutc4i" fileName="Components/ItemCount.xml" pkg="rd135cfr" xy="529,100" pivot="0.5,0.5" anchor="true" scale="0.7,0.7">
       <Button icon="ui://1xjqm8v2rnf9y" selectedIcon="ui://1xjqm8v2rnf9y"/>
     </component>
-    <component id="n36_un8b" name="ItemSp" src="ul8q3e" fileName="Components/PbSpTop.xml" xy="676,100" pivot="0.5,0.5" anchor="true">
+    <component id="n36_un8b" name="ItemSp" src="ul8q3e" fileName="Components/PbSpTop.xml" xy="678,99" pivot="0.5,0.5" anchor="true">
       <ProgressBar value="50" max="100"/>
     </component>
   </displayList>