|
@@ -1,4 +1,4 @@
|
|
|
-import { _decorator, Component, Label, Node, Sprite } from 'cc';
|
|
|
+import { _decorator, Button, Component, Label, Node, Sprite } from 'cc';
|
|
|
import { userDataManager } from '../../manager/userDataManager';
|
|
|
import { tools } from '../../tools';
|
|
|
import { GameManager } from '../../GameManager';
|
|
@@ -17,11 +17,14 @@ export class car_lib_top extends Component {
|
|
|
@property(Node) lab_car_pai:Node = null
|
|
|
@property(Node) btn_region:Node = null
|
|
|
@property(Node) lab_region:Node = null
|
|
|
+ @property(Node) img_region_edit:Node = null
|
|
|
@property(Node) lab_max_score:Node = null
|
|
|
@property(Node) img_car:Node = null
|
|
|
|
|
|
protected start(): void {
|
|
|
uiManager.Instance().onButtonListen(this.btn_region,()=>{
|
|
|
+ if(tools.sys_config.k_region==0) { return }
|
|
|
+
|
|
|
if(userDataManager.user_data.update_region_status==1) {
|
|
|
uiManager.Instance().showUi(config.UI.ui_tips_view)
|
|
|
return
|
|
@@ -30,6 +33,11 @@ export class car_lib_top extends Component {
|
|
|
node.getComponent(select_area).initView(true, this.onSelectArea.bind(this))
|
|
|
})
|
|
|
})
|
|
|
+
|
|
|
+ if(tools.sys_config.k_region==0) {
|
|
|
+ this.btn_region.getComponent(Button).interactable = false
|
|
|
+ this.img_region_edit.active = false
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
init() {
|