|
@@ -13,6 +13,7 @@ import { fail_ani } from './ui/fail_ani';
|
|
|
import { content_rule_and_tips } from './tips/content_rule_and_tips';
|
|
|
import { back_title } from './ui/back_title';
|
|
|
import { boss_tips } from './tips/boss_tips';
|
|
|
+import { content_only_tip } from './tips/content_only_tip';
|
|
|
const { ccclass, property } = _decorator;
|
|
|
|
|
|
@ccclass('ui_layer')
|
|
@@ -29,6 +30,7 @@ export class ui_layer extends Component {
|
|
|
@property(Prefab) boss_info_data_prefab:Prefab = null;
|
|
|
@property(Node) ui_manifestations:Node = null;
|
|
|
@property(Node) content_rule_and_tips:Node = null;
|
|
|
+ @property(Node) content_only_tip:Node = null;
|
|
|
@property(Node) content_count_down:Node = null;
|
|
|
@property(Node) back_title_node:Node = null;
|
|
|
@property(Node) boss_tips:Node = null;
|
|
@@ -53,7 +55,8 @@ export class ui_layer extends Component {
|
|
|
this.content_count_down.removeAllChildren()
|
|
|
this.ui_content.removeAllChildren()
|
|
|
this.ui_manifestations.active = false;
|
|
|
- this.content_rule_and_tips.active =false;
|
|
|
+ this.content_rule_and_tips.active = false;
|
|
|
+ this.content_only_tip.active = false;
|
|
|
this.boss_tips.active = false;
|
|
|
ClientEvent.off(config.EventRun.NOTICE_EVENT,this.beActive.bind(this),this)
|
|
|
ClientEvent.off(config.EventRun.ON_SHOW_RULE_BTN,this.onChangeShowRuleStatus.bind(this),this)
|
|
@@ -195,6 +198,7 @@ export class ui_layer extends Component {
|
|
|
initTaskUi(data:task_data){
|
|
|
this.ui_manifestations.active = false;
|
|
|
this.content_rule_and_tips.active = false;
|
|
|
+ this.content_only_tip.active = false;
|
|
|
switch (data.type) {
|
|
|
case config.task_type.zhao_xi_jie:
|
|
|
if(data._zhao_xi_jie_data==null){
|
|
@@ -205,9 +209,8 @@ export class ui_layer extends Component {
|
|
|
break;
|
|
|
case config.task_type.guo_ju_qing:
|
|
|
if(data._guo_ju_qing==null){
|
|
|
- return tools.showToast("过剧情玩法没有配置!");
|
|
|
+ return tools.showToast("过剧情有规则玩法没有配置!");
|
|
|
}
|
|
|
-
|
|
|
this.content_rule_and_tips.active = true;
|
|
|
this.content_rule_and_tips.getComponent(content_rule_and_tips).initView(()=>{
|
|
|
if(gameManager.Singleton.IsOpenRuleStatus()){
|
|
@@ -221,7 +224,11 @@ export class ui_layer extends Component {
|
|
|
},data._guo_ju_qing.binding_event_id==-1)
|
|
|
break;
|
|
|
case config.task_type.guo_ju_qing_not_rule:
|
|
|
- console.log('ui_layer initTaskUi 过剧情-无规则 过剧情-无规则')
|
|
|
+ if(data._guo_ju_qing_not_rule_data==null){
|
|
|
+ return tools.showToast("过剧情-无规则玩法没有配置!");
|
|
|
+ }
|
|
|
+ this.content_only_tip.active = true
|
|
|
+ this.content_only_tip.getComponent(content_only_tip).initView()
|
|
|
break;
|
|
|
case config.task_type.da_guai:
|
|
|
if(data._da_guai==null){
|