换了背景和对话框
@@ -11,14 +11,28 @@
|
||||
<li>早在这些生物的祖先还在有机汤里面翻滚时,我们就已经是这个银河系的霸主了——以前如此,今后也会如此。</li>
|
||||
<li>一般来说,我们并不喜欢暴力和流血冲突,如果这些星系的原住民能更配合点就好了。</li>
|
||||
</descriptions>
|
||||
<immediateEffects>
|
||||
<li>
|
||||
<effects>
|
||||
<!-- 获取好感 -->
|
||||
<li Class="WulaFallenEmpire.Effect_ClearVariable">
|
||||
<name>Wula_Goodwill_To_PIA</name>
|
||||
</li>
|
||||
<li Class="WulaFallenEmpire.Effect_CheckFactionGoodwill">
|
||||
<factionDef>Wula_PIA_Legion_Faction</factionDef>
|
||||
<variableName>Wula_Goodwill_To_PIA</variableName>
|
||||
</li>
|
||||
</effects>
|
||||
</li>
|
||||
</immediateEffects>
|
||||
<options>
|
||||
<li>
|
||||
<label>我想问些事情</label>
|
||||
<useCustomColors>true</useCustomColors>
|
||||
<normalColor>(255,255,255,255)</normalColor>
|
||||
<label>我想问些事情···</label>
|
||||
<!-- <useCustomColors>false</useCustomColors>
|
||||
<normalColor>(130,49,47,255)</normalColor>
|
||||
<hoverColor>(157,201,185,195)</hoverColor>
|
||||
<textColor>(255,255,255,255)</textColor>
|
||||
<textHoverColor>(255,255,255,255)</textHoverColor>
|
||||
<textColor>(171,87,85,255)</textColor>
|
||||
<textHoverColor>(255,255,255,255)</textHoverColor> -->
|
||||
<optionEffects>
|
||||
<li>
|
||||
<effects>
|
||||
@@ -28,8 +42,16 @@
|
||||
</optionEffects>
|
||||
</li>
|
||||
<li>
|
||||
<label>我们要申请支援!</label>
|
||||
<useCustomColors>true</useCustomColors>
|
||||
<label>我们要申请支援···</label>
|
||||
<disabledReason>殖民地的表现让P.I.A相当不满意,不会为殖民地派出任何额外增援</disabledReason>
|
||||
<conditions>
|
||||
<li Class="WulaFallenEmpire.Condition_VariableGreaterThan">
|
||||
<name>Wula_Goodwill_To_PIA</name>
|
||||
<value>-75</value>
|
||||
</li>
|
||||
</conditions>
|
||||
<hideWhenDisabled>false</hideWhenDisabled>
|
||||
<useCustomColors>false</useCustomColors>
|
||||
<normalColor>(255,255,255,255)</normalColor>
|
||||
<hoverColor>(157,201,185,195)</hoverColor>
|
||||
<textColor>(255,255,255,255)</textColor>
|
||||
@@ -46,8 +68,15 @@
|
||||
</optionEffects>
|
||||
</li>
|
||||
<li>
|
||||
<label>我们想要接受晋级审查</label>
|
||||
<useCustomColors>true</useCustomColors>
|
||||
<label>我们想要接受晋级审查···</label>
|
||||
<hideWhenDisabled>true</hideWhenDisabled>
|
||||
<conditions>
|
||||
<li Class="WulaFallenEmpire.Condition_VariableLessThanOrEqual">
|
||||
<name>Wula_Reinforcement_From_PIA_Level</name>
|
||||
<value>1</value>
|
||||
</li>
|
||||
</conditions>
|
||||
<useCustomColors>false</useCustomColors>
|
||||
<normalColor>(255,255,255,255)</normalColor>
|
||||
<hoverColor>(157,201,185,195)</hoverColor>
|
||||
<textColor>(255,255,255,255)</textColor>
|
||||
@@ -65,7 +94,7 @@
|
||||
</li>
|
||||
<li>
|
||||
<label>再见</label>
|
||||
<useCustomColors>true</useCustomColors>
|
||||
<useCustomColors>false</useCustomColors>
|
||||
<normalColor>(255,255,255,255)</normalColor>
|
||||
<hoverColor>(157,201,185,195)</hoverColor>
|
||||
<textColor>(255,255,255,255)</textColor>
|
||||
@@ -109,6 +138,11 @@
|
||||
<value>0</value>
|
||||
<type>Int</type>
|
||||
</li>
|
||||
<li Class="WulaFallenEmpire.Effect_SetVariable">
|
||||
<name>Wula_Reinforcement_From_PIA_Level</name>
|
||||
<value>1</value>
|
||||
<type>Int</type>
|
||||
</li>
|
||||
|
||||
<!-- 获取好感 -->
|
||||
<li Class="WulaFallenEmpire.Effect_ClearVariable">
|
||||
@@ -144,7 +178,7 @@
|
||||
</optionEffects>
|
||||
</li>
|
||||
<li>
|
||||
<label>我们需要一只新的机械乌拉</label>
|
||||
<label>我们需要人手增援</label>
|
||||
<disabledReason>你们不会自己去造吗?</disabledReason>
|
||||
<hideWhenDisabled>false</hideWhenDisabled>
|
||||
<conditions>
|
||||
@@ -187,7 +221,7 @@
|
||||
</li>
|
||||
<li>
|
||||
<label>还有其他事情···</label>
|
||||
<useCustomColors>true</useCustomColors>
|
||||
<useCustomColors>false</useCustomColors>
|
||||
<normalColor>(255,255,255,255)</normalColor>
|
||||
<hoverColor>(157,201,185,195)</hoverColor>
|
||||
<textColor>(255,255,255,255)</textColor>
|
||||
@@ -213,20 +247,6 @@
|
||||
<descriptions>
|
||||
<li>原来是来要钱的嘛···我可以给你们调拨一轮紧急资金,但是这是有限的,并且仅能作殖民地发展之用。\n\n话说回来,你们真的缺钱吗,我怎么有点不信?</li>
|
||||
</descriptions>
|
||||
<immediateEffects>
|
||||
<li>
|
||||
<effects>
|
||||
<!-- 获取好感 -->
|
||||
<li Class="WulaFallenEmpire.Effect_ClearVariable">
|
||||
<name>Wula_Goodwill_To_PIA</name>
|
||||
</li>
|
||||
<li Class="WulaFallenEmpire.Effect_CheckFactionGoodwill">
|
||||
<factionDef>Wula_PIA_Legion_Faction</factionDef>
|
||||
<variableName>Wula_Goodwill_To_PIA</variableName>
|
||||
</li>
|
||||
</effects>
|
||||
</li>
|
||||
</immediateEffects>
|
||||
<options>
|
||||
<li>
|
||||
<label>对的对的,我们是真穷!</label>
|
||||
@@ -259,6 +279,85 @@
|
||||
</li>
|
||||
</optionEffects>
|
||||
</li>
|
||||
<li>
|
||||
<label>其实比起钱我们更需要零部件···</label>
|
||||
<hideWhenDisabled>true</hideWhenDisabled>
|
||||
<conditions>
|
||||
<li Class="WulaFallenEmpire.Condition_VariableGreaterThan">
|
||||
<name>Wula_Reinforcement_From_PIA_Level</name>
|
||||
<value>1</value>
|
||||
</li>
|
||||
</conditions>
|
||||
<optionEffects>
|
||||
<li>
|
||||
<effects>
|
||||
<li Class="WulaFallenEmpire.Effect_OpenCustomUI">
|
||||
<defName>Wula_UI_Legion_31A</defName>
|
||||
</li>
|
||||
<li Class="WulaFallenEmpire.Effect_CloseDialog" />
|
||||
</effects>
|
||||
</li>
|
||||
</optionEffects>
|
||||
</li>
|
||||
<li>
|
||||
<label>还是算了</label>
|
||||
<optionEffects>
|
||||
<li>
|
||||
<effects>
|
||||
<li Class="WulaFallenEmpire.Effect_OpenCustomUI">
|
||||
<defName>Wula_UI_Legion_1</defName>
|
||||
</li>
|
||||
<li Class="WulaFallenEmpire.Effect_CloseDialog" />
|
||||
</effects>
|
||||
</li>
|
||||
</optionEffects>
|
||||
</li>
|
||||
</options>
|
||||
</WulaFallenEmpire.EventDef>
|
||||
<WulaFallenEmpire.EventDef>
|
||||
<defName>Wula_UI_Legion_31A</defName>
|
||||
<label>和P.I.A的通讯</label>
|
||||
<portraitPath>Wula/Events/Portraits/WULA_Legion_5</portraitPath>
|
||||
<characterName>「军团」,P.I.A</characterName>
|
||||
<descriptions>
|
||||
<li>很具体的要求,看起来你们是遇到了一点零件大危机?我空投一些给你们吧,但是要记住免费的零部件可不会老是从天上掉下来。</li>
|
||||
</descriptions>
|
||||
<options>
|
||||
<li>
|
||||
<label>是的,我们被卡脖子了</label>
|
||||
<disabledReason>殖民地的表现让P.I.A相当不满意,不会为殖民地派出任何额外增援</disabledReason>
|
||||
<hideWhenDisabled>false</hideWhenDisabled>
|
||||
<conditions>
|
||||
<li Class="WulaFallenEmpire.Condition_VariableGreaterThan">
|
||||
<name>Wula_Goodwill_To_PIA</name>
|
||||
<value>-75</value>
|
||||
</li>
|
||||
</conditions>
|
||||
<optionEffects>
|
||||
<li>
|
||||
<effects>
|
||||
<li Class="WulaFallenEmpire.Effect_GiveThing">
|
||||
<thingDef>ComponentIndustrial</thingDef>
|
||||
<count>30</count>
|
||||
</li>
|
||||
<li Class="WulaFallenEmpire.Effect_GiveThing">
|
||||
<thingDef>ComponentSpacer</thingDef>
|
||||
<count>4</count>
|
||||
</li>
|
||||
<li Class="WulaFallenEmpire.Effect_ModifyVariable">
|
||||
<name>Wula_Has_Receive_Silver_From_PIA</name>
|
||||
<value>1</value>
|
||||
<operation>Add</operation>
|
||||
</li>
|
||||
<li Class="WulaFallenEmpire.Effect_ShowMessage">
|
||||
<message>P.I.A的紧急物资已经空投(30零部件4高级零部件)</message>
|
||||
<messageTypeDef>PositiveEvent</messageTypeDef>
|
||||
</li>
|
||||
<li Class="WulaFallenEmpire.Effect_CloseDialog" />
|
||||
</effects>
|
||||
</li>
|
||||
</optionEffects>
|
||||
</li>
|
||||
<li>
|
||||
<label>还是算了</label>
|
||||
<optionEffects>
|
||||
@@ -282,20 +381,6 @@
|
||||
<descriptions>
|
||||
<li>唔,现在我手上确实有一台乌拉帝国合成人还没有分配殖民地,你们需要的话可以划拨给你们。但是下次你们得记得自己造——造合成人的材料是要花项目资金的。</li>
|
||||
</descriptions>
|
||||
<immediateEffects>
|
||||
<li>
|
||||
<effects>
|
||||
<!-- 获取好感 -->
|
||||
<li Class="WulaFallenEmpire.Effect_ClearVariable">
|
||||
<name>Wula_Goodwill_To_PIA</name>
|
||||
</li>
|
||||
<li Class="WulaFallenEmpire.Effect_CheckFactionGoodwill">
|
||||
<factionDef>Wula_PIA_Legion_Faction</factionDef>
|
||||
<variableName>Wula_Goodwill_To_PIA</variableName>
|
||||
</li>
|
||||
</effects>
|
||||
</li>
|
||||
</immediateEffects>
|
||||
<options>
|
||||
<li>
|
||||
<label>我们欣然接受</label>
|
||||
@@ -327,6 +412,88 @@
|
||||
</li>
|
||||
</optionEffects>
|
||||
</li>
|
||||
<li>
|
||||
<label>我们想要的是一些机械乌拉猫猫···</label>
|
||||
<hideWhenDisabled>true</hideWhenDisabled>
|
||||
<conditions>
|
||||
<li Class="WulaFallenEmpire.Condition_VariableGreaterThan">
|
||||
<name>Wula_Reinforcement_From_PIA_Level</name>
|
||||
<value>1</value>
|
||||
</li>
|
||||
</conditions>
|
||||
<optionEffects>
|
||||
<li>
|
||||
<effects>
|
||||
<li Class="WulaFallenEmpire.Effect_OpenCustomUI">
|
||||
<defName>Wula_UI_Legion_32A</defName>
|
||||
</li>
|
||||
<li Class="WulaFallenEmpire.Effect_CloseDialog" />
|
||||
</effects>
|
||||
</li>
|
||||
</optionEffects>
|
||||
</li>
|
||||
<li>
|
||||
<label>还是算了</label>
|
||||
<optionEffects>
|
||||
<li>
|
||||
<effects>
|
||||
<li Class="WulaFallenEmpire.Effect_OpenCustomUI">
|
||||
<defName>Wula_UI_Legion_1</defName>
|
||||
</li>
|
||||
<li Class="WulaFallenEmpire.Effect_CloseDialog" />
|
||||
</effects>
|
||||
</li>
|
||||
</optionEffects>
|
||||
</li>
|
||||
</options>
|
||||
</WulaFallenEmpire.EventDef>
|
||||
<WulaFallenEmpire.EventDef>
|
||||
<defName>Wula_UI_Legion_32A</defName>
|
||||
<label>和P.I.A的通讯</label>
|
||||
<portraitPath>Wula/Events/Portraits/WULA_Legion_5</portraitPath>
|
||||
<characterName>「军团」,P.I.A</characterName>
|
||||
<descriptions>
|
||||
<li>缺廉价劳动力吗?那我把手边的乌拉猫猫都扔下去吧,应该有十来只,够你们用的了。</li>
|
||||
</descriptions>
|
||||
<options>
|
||||
<li>
|
||||
<label>这正是我们想要的</label>
|
||||
<disabledReason>殖民地的表现让P.I.A相当不满意,不会为殖民地派出任何额外增援</disabledReason>
|
||||
<hideWhenDisabled>false</hideWhenDisabled>
|
||||
<conditions>
|
||||
<li Class="WulaFallenEmpire.Condition_VariableGreaterThan">
|
||||
<name>Wula_Goodwill_To_PIA</name>
|
||||
<value>-75</value>
|
||||
</li>
|
||||
</conditions>
|
||||
<optionEffects>
|
||||
<li>
|
||||
<effects>
|
||||
<li Class="WulaFallenEmpire.Effect_SpawnPawn">
|
||||
<kindDef>Mech_WULA_Cat_Constructor</kindDef>
|
||||
<count>3</count>
|
||||
<joinPlayerFaction>true</joinPlayerFaction>
|
||||
</li>
|
||||
<li Class="WulaFallenEmpire.Effect_SpawnPawn">
|
||||
<kindDef>Mech_WULA_Cat_Assault</kindDef>
|
||||
<count>3</count>
|
||||
<joinPlayerFaction>true</joinPlayerFaction>
|
||||
</li>
|
||||
<li Class="WulaFallenEmpire.Effect_SpawnPawn">
|
||||
<kindDef>Mech_WULA_Cat</kindDef>
|
||||
<count>3</count>
|
||||
<joinPlayerFaction>true</joinPlayerFaction>
|
||||
</li>
|
||||
<li Class="WulaFallenEmpire.Effect_ModifyVariable">
|
||||
<name>Wula_Has_Receive_MechWula_From_PIA</name>
|
||||
<value>1</value>
|
||||
<operation>Add</operation>
|
||||
</li>
|
||||
<li Class="WulaFallenEmpire.Effect_CloseDialog" />
|
||||
</effects>
|
||||
</li>
|
||||
</optionEffects>
|
||||
</li>
|
||||
<li>
|
||||
<label>还是算了</label>
|
||||
<optionEffects>
|
||||
@@ -350,20 +517,6 @@
|
||||
<descriptions>
|
||||
<li>遇到麻烦了?我可以把手上的特遣队丢下去,你们记得找好掩体。</li>
|
||||
</descriptions>
|
||||
<immediateEffects>
|
||||
<li>
|
||||
<effects>
|
||||
<!-- 获取好感 -->
|
||||
<li Class="WulaFallenEmpire.Effect_ClearVariable">
|
||||
<name>Wula_Goodwill_To_PIA</name>
|
||||
</li>
|
||||
<li Class="WulaFallenEmpire.Effect_CheckFactionGoodwill">
|
||||
<factionDef>Wula_PIA_Legion_Faction</factionDef>
|
||||
<variableName>Wula_Goodwill_To_PIA</variableName>
|
||||
</li>
|
||||
</effects>
|
||||
</li>
|
||||
</immediateEffects>
|
||||
<options>
|
||||
<li>
|
||||
<label>再不来我们要死完啦</label>
|
||||
@@ -404,6 +557,89 @@
|
||||
</li>
|
||||
</optionEffects>
|
||||
</li>
|
||||
<li>
|
||||
<label>有没有更重型的部队···</label>
|
||||
<hideWhenDisabled>true</hideWhenDisabled>
|
||||
<conditions>
|
||||
<li Class="WulaFallenEmpire.Condition_VariableGreaterThan">
|
||||
<name>Wula_Reinforcement_From_PIA_Level</name>
|
||||
<value>1</value>
|
||||
</li>
|
||||
</conditions>
|
||||
<optionEffects>
|
||||
<li>
|
||||
<effects>
|
||||
<li Class="WulaFallenEmpire.Effect_OpenCustomUI">
|
||||
<defName>Wula_UI_Legion_33A</defName>
|
||||
</li>
|
||||
<li Class="WulaFallenEmpire.Effect_CloseDialog" />
|
||||
</effects>
|
||||
</li>
|
||||
</optionEffects>
|
||||
</li>
|
||||
<li>
|
||||
<label>还是算了</label>
|
||||
<optionEffects>
|
||||
<li>
|
||||
<effects>
|
||||
<li Class="WulaFallenEmpire.Effect_OpenCustomUI">
|
||||
<defName>Wula_UI_Legion_1</defName>
|
||||
</li>
|
||||
<li Class="WulaFallenEmpire.Effect_CloseDialog" />
|
||||
</effects>
|
||||
</li>
|
||||
</optionEffects>
|
||||
</li>
|
||||
</options>
|
||||
</WulaFallenEmpire.EventDef>
|
||||
<WulaFallenEmpire.EventDef>
|
||||
<defName>Wula_UI_Legion_33A</defName>
|
||||
<label>和P.I.A的通讯</label>
|
||||
<portraitPath>Wula/Events/Portraits/WULA_Legion_1</portraitPath>
|
||||
<characterName>「军团」,P.I.A</characterName>
|
||||
<descriptions>
|
||||
<li>你们要申请重装部队支援?倒也可以,她们的人数比冲锋队少很多,但是都是精锐部队——小心别被她们的迫击炮炸到。</li>
|
||||
</descriptions>
|
||||
<options>
|
||||
<li>
|
||||
<label>这正是我们想要的</label>
|
||||
<disabledReason>殖民地的表现让P.I.A相当不满意,不会为殖民地派出任何额外增援</disabledReason>
|
||||
<hideWhenDisabled>false</hideWhenDisabled>
|
||||
<conditions>
|
||||
<li Class="WulaFallenEmpire.Condition_VariableGreaterThan">
|
||||
<name>Wula_Goodwill_To_PIA</name>
|
||||
<value>-75</value>
|
||||
</li>
|
||||
</conditions>
|
||||
<optionEffects>
|
||||
<li>
|
||||
<effects>
|
||||
<li Class="WulaFallenEmpire.Effect_ModifyVariable">
|
||||
<name>Wula_Has_Receive_Reinforcement_From_PIA</name>
|
||||
<value>1</value>
|
||||
<operation>Add</operation>
|
||||
</li>
|
||||
<li Class="WulaFallenEmpire.Effect_TriggerRaid">
|
||||
<points>4000</points>
|
||||
<faction>Wula_PIA_Legion_Faction</faction>
|
||||
<raidStrategy>ImmediateAttackFriendly</raidStrategy>
|
||||
<raidArrivalMode>EdgeDropGroups</raidArrivalMode>
|
||||
<groupKind>Combat</groupKind>
|
||||
<pawnGroupMakers>
|
||||
<li>
|
||||
<kindDef>Combat</kindDef>
|
||||
<commonality>100</commonality>
|
||||
<options>
|
||||
<Wula_PIA_Heavy_Unit>1</Wula_PIA_Heavy_Unit>
|
||||
</options>
|
||||
</li>
|
||||
</pawnGroupMakers>
|
||||
</li>
|
||||
<li Class="WulaFallenEmpire.Effect_CloseDialog" />
|
||||
</effects>
|
||||
</li>
|
||||
</optionEffects>
|
||||
</li>
|
||||
<li>
|
||||
<label>还是算了</label>
|
||||
<optionEffects>
|
||||
@@ -433,7 +669,7 @@
|
||||
<options>
|
||||
<li>
|
||||
<label>好的</label>
|
||||
<useCustomColors>true</useCustomColors>
|
||||
<useCustomColors>false</useCustomColors>
|
||||
<normalColor>(255,255,255,255)</normalColor>
|
||||
<hoverColor>(157,201,185,195)</hoverColor>
|
||||
<textColor>(255,255,255,255)</textColor>
|
||||
|
||||
@@ -209,7 +209,7 @@
|
||||
<options>
|
||||
<li>
|
||||
<label>下次一定</label>
|
||||
<useCustomColors>true</useCustomColors>
|
||||
<useCustomColors>false</useCustomColors>
|
||||
<normalColor>(255,255,255,255)</normalColor>
|
||||
<hoverColor>(157,201,185,195)</hoverColor>
|
||||
<textColor>(255,255,255,255)</textColor>
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
<options>
|
||||
<li>
|
||||
<label>我们准备好了</label>
|
||||
<useCustomColors>true</useCustomColors>
|
||||
<useCustomColors>false</useCustomColors>
|
||||
<normalColor>(255,255,255,255)</normalColor>
|
||||
<hoverColor>(157,201,185,195)</hoverColor>
|
||||
<textColor>(255,255,255,255)</textColor>
|
||||
@@ -29,7 +29,7 @@
|
||||
</li>
|
||||
<li>
|
||||
<label>现在不是太合适···</label>
|
||||
<useCustomColors>true</useCustomColors>
|
||||
<useCustomColors>false</useCustomColors>
|
||||
<normalColor>(255,255,255,255)</normalColor>
|
||||
<hoverColor>(157,201,185,195)</hoverColor>
|
||||
<textColor>(255,255,255,255)</textColor>
|
||||
@@ -491,6 +491,10 @@
|
||||
<li Class="QuestNode_AddItemsReward">
|
||||
<items>$promotionReward</items>
|
||||
</li>
|
||||
<li Class="WulaFallenEmpire.QuestNode_EventLetter">
|
||||
<inSignal>pickupShipThing.SentSatisfied</inSignal>
|
||||
<eventDefName>WULA_GiveQuest_Colony_Promotion_UI_2</eventDefName>
|
||||
</li>
|
||||
<li Class="QuestNode_End">
|
||||
<outcome>Success</outcome>
|
||||
<sendStandardLetter>true</sendStandardLetter>
|
||||
@@ -539,4 +543,51 @@
|
||||
</options>
|
||||
</root>
|
||||
</ThingSetMakerDef>
|
||||
<WulaFallenEmpire.EventDef>
|
||||
<defName>WULA_GiveQuest_Colony_Promotion_UI_2</defName>
|
||||
<label>未知通讯</label>
|
||||
<portraitPath>Wula/Events/Portraits/WULA_Legion_2</portraitPath>
|
||||
<characterName>「军团」,P.I.A</characterName>
|
||||
<descriptions>
|
||||
<li>看起来你们的殖民地还不错,井井有条并且符合帝国法典和章程——你们值得一个更高位的许可,稍后我会通过运输舱把晋升许可寄给你们。\n\n此外,我也将你们的支援系统重置了,你们可以再次申请之前申请过的支援,并且新的支援也会开放给你们。继续发展你们的殖民地,我就能帮你们申请更高级的权限。\n\n帝国荣光永存。</li>
|
||||
</descriptions>
|
||||
<immediateEffects>
|
||||
<li>
|
||||
<effects>
|
||||
<li Class="WulaFallenEmpire.Effect_ClearVariable">
|
||||
<name>Wula_Has_Receive_Reinforcement_From_PIA</name>
|
||||
</li>
|
||||
<li Class="WulaFallenEmpire.Effect_ClearVariable">
|
||||
<name>Wula_Has_Receive_MechWula_From_PIA</name>
|
||||
</li>
|
||||
<li Class="WulaFallenEmpire.Effect_ClearVariable">
|
||||
<name>Wula_Has_Receive_Silver_From_PIA</name>
|
||||
</li>
|
||||
<!-- 在进入任务前,一定会点开mainevent,姑且认为该var不会为空 -->
|
||||
<li Class="WulaFallenEmpire.Effect_ModifyVariable">
|
||||
<name>Wula_Reinforcement_From_PIA_Level</name>
|
||||
<value>1</value>
|
||||
<operation>Add</operation>
|
||||
</li>
|
||||
</effects>
|
||||
</li>
|
||||
</immediateEffects>
|
||||
<options>
|
||||
<li>
|
||||
<label>帝国荣光永存</label>
|
||||
<useCustomColors>false</useCustomColors>
|
||||
<normalColor>(255,255,255,255)</normalColor>
|
||||
<hoverColor>(157,201,185,195)</hoverColor>
|
||||
<textColor>(255,255,255,255)</textColor>
|
||||
<textHoverColor>(255,255,255,255)</textHoverColor>
|
||||
<optionEffects>
|
||||
<li>
|
||||
<effects>
|
||||
<li Class="WulaFallenEmpire.Effect_CloseDialog" />
|
||||
</effects>
|
||||
</li>
|
||||
</optionEffects>
|
||||
</li>
|
||||
</options>
|
||||
</WulaFallenEmpire.EventDef>
|
||||
</Defs>
|
||||
@@ -59,7 +59,7 @@
|
||||
<options>
|
||||
<li>
|
||||
<label>你是谁?</label>
|
||||
<useCustomColors>true</useCustomColors>
|
||||
<useCustomColors>false</useCustomColors>
|
||||
<normalColor>(255,255,255,255)</normalColor>
|
||||
<hoverColor>(157,201,185,195)</hoverColor>
|
||||
<textColor>(255,255,255,255)</textColor>
|
||||
@@ -77,7 +77,7 @@
|
||||
</li>
|
||||
<li>
|
||||
<label>我们需要做什么?(发展流程)</label>
|
||||
<useCustomColors>true</useCustomColors>
|
||||
<useCustomColors>false</useCustomColors>
|
||||
<normalColor>(255,255,255,255)</normalColor>
|
||||
<hoverColor>(157,201,185,195)</hoverColor>
|
||||
<textColor>(255,255,255,255)</textColor>
|
||||
@@ -95,7 +95,7 @@
|
||||
</li>
|
||||
<li>
|
||||
<label>收到,帝国荣光永存</label>
|
||||
<useCustomColors>true</useCustomColors>
|
||||
<useCustomColors>false</useCustomColors>
|
||||
<normalColor>(255,255,255,255)</normalColor>
|
||||
<hoverColor>(157,201,185,195)</hoverColor>
|
||||
<textColor>(255,255,255,255)</textColor>
|
||||
@@ -124,7 +124,7 @@
|
||||
<options>
|
||||
<li>
|
||||
<label>行星封锁机关?</label>
|
||||
<useCustomColors>true</useCustomColors>
|
||||
<useCustomColors>false</useCustomColors>
|
||||
<normalColor>(255,255,255,255)</normalColor>
|
||||
<hoverColor>(157,201,185,195)</hoverColor>
|
||||
<textColor>(255,255,255,255)</textColor>
|
||||
@@ -142,7 +142,7 @@
|
||||
</li>
|
||||
<li>
|
||||
<label>机械行会?</label>
|
||||
<useCustomColors>true</useCustomColors>
|
||||
<useCustomColors>false</useCustomColors>
|
||||
<normalColor>(255,255,255,255)</normalColor>
|
||||
<hoverColor>(157,201,185,195)</hoverColor>
|
||||
<textColor>(255,255,255,255)</textColor>
|
||||
@@ -160,7 +160,7 @@
|
||||
</li>
|
||||
<li>
|
||||
<label>我们没有相关问题了···</label>
|
||||
<useCustomColors>true</useCustomColors>
|
||||
<useCustomColors>false</useCustomColors>
|
||||
<normalColor>(255,255,255,255)</normalColor>
|
||||
<hoverColor>(157,201,185,195)</hoverColor>
|
||||
<textColor>(255,255,255,255)</textColor>
|
||||
@@ -189,7 +189,7 @@
|
||||
<options>
|
||||
<li>
|
||||
<label>我们还有别的问题···</label>
|
||||
<useCustomColors>true</useCustomColors>
|
||||
<useCustomColors>false</useCustomColors>
|
||||
<normalColor>(255,255,255,255)</normalColor>
|
||||
<hoverColor>(157,201,185,195)</hoverColor>
|
||||
<textColor>(255,255,255,255)</textColor>
|
||||
@@ -207,7 +207,7 @@
|
||||
</li>
|
||||
<li>
|
||||
<label>我们没有相关问题了···</label>
|
||||
<useCustomColors>true</useCustomColors>
|
||||
<useCustomColors>false</useCustomColors>
|
||||
<normalColor>(255,255,255,255)</normalColor>
|
||||
<hoverColor>(157,201,185,195)</hoverColor>
|
||||
<textColor>(255,255,255,255)</textColor>
|
||||
@@ -236,7 +236,7 @@
|
||||
<options>
|
||||
<li>
|
||||
<label>我们还有别的问题···</label>
|
||||
<useCustomColors>true</useCustomColors>
|
||||
<useCustomColors>false</useCustomColors>
|
||||
<normalColor>(255,255,255,255)</normalColor>
|
||||
<hoverColor>(157,201,185,195)</hoverColor>
|
||||
<textColor>(255,255,255,255)</textColor>
|
||||
@@ -254,7 +254,7 @@
|
||||
</li>
|
||||
<li>
|
||||
<label>我们没有相关问题了···</label>
|
||||
<useCustomColors>true</useCustomColors>
|
||||
<useCustomColors>false</useCustomColors>
|
||||
<normalColor>(255,255,255,255)</normalColor>
|
||||
<hoverColor>(157,201,185,195)</hoverColor>
|
||||
<textColor>(255,255,255,255)</textColor>
|
||||
@@ -283,7 +283,7 @@
|
||||
<options>
|
||||
<li>
|
||||
<label>我们还有别的问题···</label>
|
||||
<useCustomColors>true</useCustomColors>
|
||||
<useCustomColors>false</useCustomColors>
|
||||
<normalColor>(255,255,255,255)</normalColor>
|
||||
<hoverColor>(157,201,185,195)</hoverColor>
|
||||
<textColor>(255,255,255,255)</textColor>
|
||||
@@ -301,7 +301,7 @@
|
||||
</li>
|
||||
<li>
|
||||
<label>我们没有相关问题了···</label>
|
||||
<useCustomColors>true</useCustomColors>
|
||||
<useCustomColors>false</useCustomColors>
|
||||
<normalColor>(255,255,255,255)</normalColor>
|
||||
<hoverColor>(157,201,185,195)</hoverColor>
|
||||
<textColor>(255,255,255,255)</textColor>
|
||||
@@ -330,7 +330,7 @@
|
||||
<options>
|
||||
<li>
|
||||
<label>你是谁?</label>
|
||||
<useCustomColors>true</useCustomColors>
|
||||
<useCustomColors>false</useCustomColors>
|
||||
<normalColor>(255,255,255,255)</normalColor>
|
||||
<hoverColor>(157,201,185,195)</hoverColor>
|
||||
<textColor>(255,255,255,255)</textColor>
|
||||
@@ -348,7 +348,7 @@
|
||||
</li>
|
||||
<li>
|
||||
<label>我们需要做什么?(发展流程)</label>
|
||||
<useCustomColors>true</useCustomColors>
|
||||
<useCustomColors>false</useCustomColors>
|
||||
<normalColor>(255,255,255,255)</normalColor>
|
||||
<hoverColor>(157,201,185,195)</hoverColor>
|
||||
<textColor>(255,255,255,255)</textColor>
|
||||
@@ -366,7 +366,7 @@
|
||||
</li>
|
||||
<li>
|
||||
<label>收到,帝国荣光永存</label>
|
||||
<useCustomColors>true</useCustomColors>
|
||||
<useCustomColors>false</useCustomColors>
|
||||
<normalColor>(255,255,255,255)</normalColor>
|
||||
<hoverColor>(157,201,185,195)</hoverColor>
|
||||
<textColor>(255,255,255,255)</textColor>
|
||||
@@ -395,7 +395,7 @@
|
||||
<options>
|
||||
<li>
|
||||
<label>(结束通讯)</label>
|
||||
<useCustomColors>true</useCustomColors>
|
||||
<useCustomColors>false</useCustomColors>
|
||||
<normalColor>(255,255,255,255)</normalColor>
|
||||
<hoverColor>(157,201,185,195)</hoverColor>
|
||||
<textColor>(255,255,255,255)</textColor>
|
||||
|
||||
@@ -417,7 +417,7 @@
|
||||
<options>
|
||||
<li>
|
||||
<label>你们是谁?</label>
|
||||
<useCustomColors>true</useCustomColors>
|
||||
<useCustomColors>false</useCustomColors>
|
||||
<normalColor>(255,255,255,255)</normalColor>
|
||||
<hoverColor>(157,201,185,195)</hoverColor>
|
||||
<textColor>(255,255,255,255)</textColor>
|
||||
@@ -435,7 +435,7 @@
|
||||
</li>
|
||||
<li>
|
||||
<label>我们能得到什么好处?</label>
|
||||
<useCustomColors>true</useCustomColors>
|
||||
<useCustomColors>false</useCustomColors>
|
||||
<normalColor>(255,255,255,255)</normalColor>
|
||||
<hoverColor>(157,201,185,195)</hoverColor>
|
||||
<textColor>(255,255,255,255)</textColor>
|
||||
@@ -453,7 +453,7 @@
|
||||
</li>
|
||||
<li>
|
||||
<label>好的,我们会留意的</label>
|
||||
<useCustomColors>true</useCustomColors>
|
||||
<useCustomColors>false</useCustomColors>
|
||||
<normalColor>(255,255,255,255)</normalColor>
|
||||
<hoverColor>(157,201,185,195)</hoverColor>
|
||||
<textColor>(255,255,255,255)</textColor>
|
||||
@@ -479,7 +479,7 @@
|
||||
<options>
|
||||
<li>
|
||||
<label>还有别的事情···</label>
|
||||
<useCustomColors>true</useCustomColors>
|
||||
<useCustomColors>false</useCustomColors>
|
||||
<normalColor>(255,255,255,255)</normalColor>
|
||||
<hoverColor>(157,201,185,195)</hoverColor>
|
||||
<textColor>(255,255,255,255)</textColor>
|
||||
@@ -508,7 +508,7 @@
|
||||
<options>
|
||||
<li>
|
||||
<label>还有别的事情···</label>
|
||||
<useCustomColors>true</useCustomColors>
|
||||
<useCustomColors>false</useCustomColors>
|
||||
<normalColor>(255,255,255,255)</normalColor>
|
||||
<hoverColor>(157,201,185,195)</hoverColor>
|
||||
<textColor>(255,255,255,255)</textColor>
|
||||
@@ -537,7 +537,7 @@
|
||||
<options>
|
||||
<li>
|
||||
<label>我们好像还不知道你的名字?</label>
|
||||
<useCustomColors>true</useCustomColors>
|
||||
<useCustomColors>false</useCustomColors>
|
||||
<normalColor>(255,255,255,255)</normalColor>
|
||||
<hoverColor>(157,201,185,195)</hoverColor>
|
||||
<textColor>(255,255,255,255)</textColor>
|
||||
@@ -594,7 +594,7 @@
|
||||
<options>
|
||||
<li>
|
||||
<label>好的,奖励我们就收下了</label>
|
||||
<useCustomColors>true</useCustomColors>
|
||||
<useCustomColors>false</useCustomColors>
|
||||
<normalColor>(255,255,255,255)</normalColor>
|
||||
<hoverColor>(157,201,185,195)</hoverColor>
|
||||
<textColor>(255,255,255,255)</textColor>
|
||||
|
||||
|
Before Width: | Height: | Size: 2.7 MiB After Width: | Height: | Size: 7.9 MiB |
|
Before Width: | Height: | Size: 2.7 MiB After Width: | Height: | Size: 7.8 MiB |
|
Before Width: | Height: | Size: 2.7 MiB After Width: | Height: | Size: 7.8 MiB |
|
Before Width: | Height: | Size: 2.7 MiB After Width: | Height: | Size: 7.8 MiB |
|
Before Width: | Height: | Size: 2.7 MiB After Width: | Height: | Size: 7.8 MiB |
|
Before Width: | Height: | Size: 2.7 MiB After Width: | Height: | Size: 7.8 MiB |
|
Before Width: | Height: | Size: 36 KiB After Width: | Height: | Size: 216 KiB |
@@ -27,6 +27,190 @@ namespace WulaFallenEmpire
|
||||
}
|
||||
}
|
||||
|
||||
// 新增:自定义按钮样式设置
|
||||
private static readonly Color CustomButtonNormalColor = new Color(0.5f, 0.2f, 0.2f, 1f);
|
||||
private static readonly Color CustomButtonHoverColor = new Color(0.6f, 0.3f, 0.3f, 1f);
|
||||
private static readonly Color CustomButtonDisabledColor = new Color(0.15f, 0.15f, 0.15f, 0.6f);
|
||||
|
||||
private static readonly Color CustomButtonTextNormalColor = new Color(0.9f, 0.9f, 0.9f, 1f);
|
||||
private static readonly Color CustomButtonTextHoverColor = new Color(1f, 1f, 1f, 1f);
|
||||
private static readonly Color CustomButtonTextDisabledColor = new Color(0.6f, 0.6f, 0.6f, 1f);
|
||||
// 绘制单个选项 - 使用自定义样式
|
||||
private void DrawSingleOption(Rect rect, EventOption option)
|
||||
{
|
||||
string reason;
|
||||
bool conditionsMet = AreConditionsMet(option.conditions, out reason);
|
||||
|
||||
// 水平居中选项
|
||||
float optionWidth = Mathf.Min(rect.width, Config.optionSize.x * (rect.width / Config.windowSize.x));
|
||||
float optionX = rect.x + (rect.width - optionWidth) / 2;
|
||||
Rect optionRect = new Rect(optionX, rect.y, optionWidth, rect.height);
|
||||
// 保存原始状态
|
||||
Color originalColor = GUI.color;
|
||||
GameFont originalFont = Text.Font;
|
||||
Color originalTextColor = GUI.contentColor;
|
||||
TextAnchor originalAnchor = Text.Anchor;
|
||||
try
|
||||
{
|
||||
// 设置文本居中
|
||||
Text.Anchor = TextAnchor.MiddleCenter;
|
||||
Text.Font = GameFont.Small;
|
||||
if (conditionsMet)
|
||||
{
|
||||
// 启用状态的选项 - 使用自定义样式
|
||||
if (option.useCustomColors)
|
||||
{
|
||||
// 使用选项自定义颜色
|
||||
DrawCustomButtonWithColors(optionRect, option.label.Translate(), option);
|
||||
}
|
||||
else
|
||||
{
|
||||
// 使用默认自定义颜色
|
||||
DrawCustomButton(optionRect, option.label.Translate(), isEnabled: true);
|
||||
}
|
||||
// 添加点击处理
|
||||
if (Widgets.ButtonInvisible(optionRect))
|
||||
{
|
||||
HandleAction(option.optionEffects);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
// 禁用状态的选项 - 使用自定义禁用样式
|
||||
if (option.useCustomColors && option.disabledColor.HasValue)
|
||||
{
|
||||
// 使用选项自定义禁用颜色
|
||||
DrawCustomButtonWithColors(optionRect, option.label.Translate(), option, isEnabled: false);
|
||||
}
|
||||
else
|
||||
{
|
||||
// 使用默认自定义禁用颜色
|
||||
DrawCustomButton(optionRect, option.label.Translate(), isEnabled: false);
|
||||
}
|
||||
// 添加禁用提示
|
||||
TooltipHandler.TipRegion(optionRect, GetDisabledReason(option, reason).Translate());
|
||||
}
|
||||
}
|
||||
finally
|
||||
{
|
||||
// 恢复原始状态
|
||||
GUI.color = originalColor;
|
||||
Text.Font = originalFont;
|
||||
GUI.contentColor = originalTextColor;
|
||||
Text.Anchor = originalAnchor;
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// 绘制自定义按钮(基础版本)
|
||||
/// </summary>
|
||||
private void DrawCustomButton(Rect rect, string label, bool isEnabled = true)
|
||||
{
|
||||
bool isMouseOver = Mouse.IsOver(rect);
|
||||
|
||||
// 确定按钮状态颜色
|
||||
Color buttonColor, textColor;
|
||||
|
||||
if (!isEnabled)
|
||||
{
|
||||
// 禁用状态
|
||||
buttonColor = CustomButtonDisabledColor;
|
||||
textColor = CustomButtonTextDisabledColor;
|
||||
}
|
||||
else if (isMouseOver)
|
||||
{
|
||||
// 悬停状态
|
||||
buttonColor = CustomButtonHoverColor;
|
||||
textColor = CustomButtonTextHoverColor;
|
||||
}
|
||||
else
|
||||
{
|
||||
// 正常状态
|
||||
buttonColor = CustomButtonNormalColor;
|
||||
textColor = CustomButtonTextNormalColor;
|
||||
}
|
||||
// 绘制按钮背景
|
||||
GUI.color = buttonColor;
|
||||
Widgets.DrawBoxSolid(rect, buttonColor);
|
||||
|
||||
// 绘制边框
|
||||
if (isEnabled)
|
||||
{
|
||||
Widgets.DrawBox(rect, 1);
|
||||
}
|
||||
else
|
||||
{
|
||||
// 禁用状态的边框更细更暗
|
||||
Widgets.DrawBox(rect, 1);
|
||||
}
|
||||
// 绘制文本
|
||||
GUI.color = textColor;
|
||||
Text.Anchor = TextAnchor.MiddleCenter;
|
||||
Widgets.Label(rect.ContractedBy(4f), label);
|
||||
|
||||
// 如果是禁用状态,添加删除线效果
|
||||
if (!isEnabled)
|
||||
{
|
||||
GUI.color = new Color(0.6f, 0.6f, 0.6f, 0.8f);
|
||||
Widgets.DrawLine(
|
||||
new Vector2(rect.x + 10f, rect.center.y),
|
||||
new Vector2(rect.xMax - 10f, rect.center.y),
|
||||
GUI.color,
|
||||
1f
|
||||
);
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// 绘制自定义按钮(使用选项自定义颜色)
|
||||
/// </summary>
|
||||
private void DrawCustomButtonWithColors(Rect rect, string label, EventOption option, bool isEnabled = true)
|
||||
{
|
||||
bool isMouseOver = Mouse.IsOver(rect);
|
||||
|
||||
// 确定按钮状态颜色
|
||||
Color buttonColor, textColor;
|
||||
|
||||
if (!isEnabled)
|
||||
{
|
||||
// 禁用状态
|
||||
buttonColor = option.disabledColor ?? CustomButtonDisabledColor;
|
||||
textColor = option.textDisabledColor ?? CustomButtonTextDisabledColor;
|
||||
}
|
||||
else if (isMouseOver)
|
||||
{
|
||||
// 悬停状态
|
||||
buttonColor = option.hoverColor ?? CustomButtonHoverColor;
|
||||
textColor = option.textHoverColor ?? CustomButtonTextHoverColor;
|
||||
}
|
||||
else
|
||||
{
|
||||
// 正常状态
|
||||
buttonColor = option.normalColor ?? CustomButtonNormalColor;
|
||||
textColor = option.textColor ?? CustomButtonTextNormalColor;
|
||||
}
|
||||
// 绘制按钮背景
|
||||
GUI.color = buttonColor;
|
||||
Widgets.DrawBoxSolid(rect, buttonColor);
|
||||
|
||||
// 绘制边框
|
||||
Widgets.DrawBox(rect);
|
||||
// 绘制文本
|
||||
GUI.color = textColor;
|
||||
Text.Anchor = TextAnchor.MiddleCenter;
|
||||
Widgets.Label(rect.ContractedBy(4f), label);
|
||||
|
||||
// 如果是禁用状态,添加删除线效果
|
||||
if (!isEnabled)
|
||||
{
|
||||
GUI.color = new Color(0.6f, 0.6f, 0.6f, 0.8f);
|
||||
Widgets.DrawLine(
|
||||
new Vector2(rect.x + 10f, rect.center.y),
|
||||
new Vector2(rect.xMax - 10f, rect.center.y),
|
||||
GUI.color,
|
||||
1f
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
// 使用配置的窗口尺寸
|
||||
public override Vector2 InitialSize
|
||||
{
|
||||
@@ -342,90 +526,6 @@ namespace WulaFallenEmpire
|
||||
}
|
||||
}
|
||||
}
|
||||
// 绘制单个选项 - 增强版本(修复版本)
|
||||
private void DrawSingleOption(Rect rect, EventOption option)
|
||||
{
|
||||
string reason;
|
||||
bool conditionsMet = AreConditionsMet(option.conditions, out reason);
|
||||
// 水平居中选项
|
||||
float optionWidth = Mathf.Min(rect.width, Config.optionSize.x * (rect.width / Config.windowSize.x));
|
||||
float optionX = rect.x + (rect.width - optionWidth) / 2;
|
||||
Rect optionRect = new Rect(optionX, rect.y, optionWidth, rect.height);
|
||||
if (conditionsMet)
|
||||
{
|
||||
// 保存原始状态
|
||||
Color originalColor = GUI.color;
|
||||
GameFont originalFont = Text.Font;
|
||||
Color originalTextColor = GUI.contentColor;
|
||||
TextAnchor originalAnchor = Text.Anchor;
|
||||
try
|
||||
{
|
||||
// 应用自定义颜色
|
||||
if (option.useCustomColors)
|
||||
{
|
||||
ApplyOptionColors(option, optionRect);
|
||||
}
|
||||
// 设置文本居中
|
||||
Text.Anchor = TextAnchor.MiddleCenter;
|
||||
|
||||
if (Widgets.ButtonText(optionRect, option.label.Translate()))
|
||||
{
|
||||
HandleAction(option.optionEffects);
|
||||
}
|
||||
}
|
||||
finally
|
||||
{
|
||||
// 恢复原始状态
|
||||
GUI.color = originalColor;
|
||||
Text.Font = originalFont;
|
||||
GUI.contentColor = originalTextColor;
|
||||
Text.Anchor = originalAnchor;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
// 禁用状态的选项 - 修复版本
|
||||
Color originalColor = GUI.color;
|
||||
GameFont originalFont = Text.Font;
|
||||
Color originalTextColor = GUI.contentColor;
|
||||
TextAnchor originalAnchor = Text.Anchor;
|
||||
try
|
||||
{
|
||||
// 设置禁用状态的颜色
|
||||
GUI.color = new Color(0.85f, 0.85f, 0.85f, 1f);
|
||||
GUI.contentColor = new Color(0.85f, 0.85f, 0.85f, 1f);
|
||||
Text.Font = GameFont.Small;
|
||||
// 修复:使用正确的 DrawBoxSolid 方法
|
||||
Widgets.DrawBoxSolid(optionRect, new Color(0.2f, 0.2f, 0.2f, 0.3f));
|
||||
Widgets.DrawBox(optionRect);
|
||||
// 设置文本居中
|
||||
Text.Anchor = TextAnchor.MiddleCenter;
|
||||
// 绘制居中的文本
|
||||
Rect textRect = optionRect.ContractedBy(4f);
|
||||
Widgets.Label(textRect, option.label.Translate());
|
||||
// 可选:在文本上添加删除线效果
|
||||
if (Config.drawBorders)
|
||||
{
|
||||
// 修复:使用正确的 DrawLine 方法
|
||||
Widgets.DrawLine(
|
||||
new Vector2(textRect.x, textRect.center.y),
|
||||
new Vector2(textRect.xMax, textRect.center.y),
|
||||
Color.gray,
|
||||
1f
|
||||
);
|
||||
}
|
||||
TooltipHandler.TipRegion(optionRect, GetDisabledReason(option, reason).Translate());
|
||||
}
|
||||
finally
|
||||
{
|
||||
// 恢复原始状态
|
||||
GUI.color = originalColor;
|
||||
Text.Font = originalFont;
|
||||
GUI.contentColor = originalTextColor;
|
||||
Text.Anchor = originalAnchor;
|
||||
}
|
||||
}
|
||||
}
|
||||
// 应用选项颜色
|
||||
private void ApplyOptionColors(EventOption option, Rect rect)
|
||||
{
|
||||
|
||||
@@ -0,0 +1,68 @@
|
||||
using UnityEngine;
|
||||
using Verse;
|
||||
|
||||
namespace WulaFallenEmpire
|
||||
{
|
||||
public class EventUIButtonConfigDef : Def
|
||||
{
|
||||
// ===== 基础按钮颜色设置 =====
|
||||
public Color normalColor = new Color(0.5f, 0.2f, 0.2f, 1f);
|
||||
public Color hoverColor = new Color(0.6f, 0.3f, 0.3f, 1f);
|
||||
public Color activeColor = new Color(0.4f, 0.4f, 0.4f, 1f);
|
||||
public Color disabledColor = new Color(0.15f, 0.15f, 0.15f, 0.6f);
|
||||
|
||||
// ===== 文本颜色设置 =====
|
||||
public Color textNormalColor = new Color(0.9f, 0.9f, 0.9f, 1f);
|
||||
public Color textHoverColor = new Color(1f, 1f, 1f, 1f);
|
||||
public Color textActiveColor = new Color(1f, 1f, 1f, 1f);
|
||||
public Color textDisabledColor = new Color(0.6f, 0.6f, 0.6f, 1f);
|
||||
|
||||
// ===== 边框设置 =====
|
||||
public bool drawBorder = true;
|
||||
public Color borderColor = new Color(0.6f, 0.2f, 0.2f, 1f);
|
||||
public int borderWidth = 1;
|
||||
|
||||
// ===== 效果设置 =====
|
||||
public bool showDisabledStrikethrough = true;
|
||||
public Color strikethroughColor = new Color(0.6f, 0.6f, 0.6f, 0.8f);
|
||||
public float strikethroughWidth = 1f;
|
||||
|
||||
// ===== 圆角设置 =====
|
||||
public bool useRoundedCorners = true;
|
||||
public float cornerRadius = 5f;
|
||||
|
||||
// ===== 阴影设置 =====
|
||||
public bool drawShadow = false;
|
||||
public Color shadowColor = new Color(0f, 0f, 0f, 0.5f);
|
||||
public Vector2 shadowOffset = new Vector2(2f, 2f);
|
||||
|
||||
// ===== 动画设置 =====
|
||||
public bool enableHoverAnimation = false;
|
||||
public float hoverScaleFactor = 1.02f;
|
||||
public float animationDuration = 0.1f;
|
||||
|
||||
// ===== 字体设置 =====
|
||||
public GameFont buttonFont = GameFont.Small;
|
||||
public bool useCustomFont = false;
|
||||
public string customFontPath;
|
||||
|
||||
// ===== 获取配置实例 =====
|
||||
private static EventUIButtonConfigDef config;
|
||||
public static EventUIButtonConfigDef Config
|
||||
{
|
||||
get
|
||||
{
|
||||
if (config == null)
|
||||
{
|
||||
config = DefDatabase<EventUIButtonConfigDef>.GetNamed("Wula_EventUIButtonConfig");
|
||||
if (config == null)
|
||||
{
|
||||
// 创建默认配置
|
||||
config = new EventUIButtonConfigDef();
|
||||
}
|
||||
}
|
||||
return config;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -125,6 +125,7 @@
|
||||
<Compile Include="EventSystem\Effect\EffectBase.cs" />
|
||||
<Compile Include="EventSystem\Effect\Effect_CallSkyfaller.cs" />
|
||||
<Compile Include="EventSystem\EventDef.cs" />
|
||||
<Compile Include="EventSystem\EventUIButtonConfigDef.cs" />
|
||||
<Compile Include="EventSystem\EventUIConfigDef.cs" />
|
||||
<Compile Include="EventSystem\EventVariableManager.cs" />
|
||||
<Compile Include="EventSystem\QuestNode\QuestNode_EventLetter.cs" />
|
||||
|
||||
BIN
美术与文本源文件/Wula/Storyteller/tile_large_bg.png
Normal file
|
After Width: | Height: | Size: 216 KiB |
BIN
美术与文本源文件/Wula/Storyteller/军团/WULA_Legion_Bg.png
Normal file
|
After Width: | Height: | Size: 3.2 MiB |