事件窗口重绘

This commit is contained in:
2025-11-08 12:02:29 +08:00
parent f9e6598b88
commit c48a373b20
28 changed files with 1524 additions and 1001 deletions

View File

@@ -8,6 +8,8 @@
<cooldownTicksRange>1</cooldownTicksRange>
<hotKey>Misc12</hotKey>
<casterMustBeCapableOfViolence>false</casterMustBeCapableOfViolence>
<displayGizmoWhileUndrafted>true</displayGizmoWhileUndrafted>
<disableGizmoWhileUndrafted>false</disableGizmoWhileUndrafted>
<verbProperties>
<verbClass>Verb_CastAbility</verbClass>
<drawAimPie>true</drawAimPie>
@@ -182,7 +184,6 @@
<effecterScale>1.5</effecterScale>
<areaPreviewColor>1.0,0.3,0.1,0.3</areaPreviewColor>
<skyfallerDef>ShipChunkIncoming</skyfallerDef>
<randomBombardmentDirection>true</randomBombardmentDirection>
</li>
<li Class="WulaFallenEmpire.CompProperties_RequireFlyOverFacility">
<!-- <flyOverDef></flyOverDef> -->

View File

@@ -6,7 +6,6 @@
<label>来自守密者的问候</label>
<portraitPath>Wula/Events/Portraits/WULA_Anisia_1</portraitPath>
<characterName>URa-1138「艾妮西娅」</characterName>
<windowType>WulaFallenEmpire.Dialog_NewLayoutDisplay</windowType>
<descriptions>
<li>很高兴看到你们的殖民地没有变成荒野中的烂泥。那么,今天找我有什么事情?</li>
<li>宇宙生存法则第一条:不要惹平胸火气大的女人。</li>

View File

@@ -9,6 +9,61 @@
<li>这里是P.I.A通讯信号良好等待输入。</li>
</descriptions>
<options>
<li>
<label>再见</label>
<useCustomColors>true</useCustomColors>
<normalColor>(133,206,219,185)</normalColor>
<hoverColor>(133,206,219,185)</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>
<li>
<label>再见</label>
<optionEffects>
<li>
<effects>
<li Class="WulaFallenEmpire.Effect_CloseDialog" />
</effects>
</li>
</optionEffects>
</li>
<li>
<label>再见</label>
<optionEffects>
<li>
<effects>
<li Class="WulaFallenEmpire.Effect_CloseDialog" />
</effects>
</li>
</optionEffects>
</li>
<li>
<label>再见</label>
<optionEffects>
<li>
<effects>
<li Class="WulaFallenEmpire.Effect_CloseDialog" />
</effects>
</li>
</optionEffects>
</li>
<li>
<label>再见</label>
<optionEffects>
<li>
<effects>
<li Class="WulaFallenEmpire.Effect_CloseDialog" />
</effects>
</li>
</optionEffects>
</li>
<li>
<label>再见</label>
<optionEffects>

View File

@@ -26,7 +26,7 @@
<li>Wula_FM_Switc_Aircraft</li>
</availableHediffs>
<defaultHediffIndex>0</defaultHediffIndex>
<gizmoIconPath>Wula/UI/Commands/WULA_NanoSwitch</gizmoIconPath>
<gizmoIconPath>Wula/UI/Commands/WULA_Antenna_Switch</gizmoIconPath>
<showStatusInGizmo>false</showStatusInGizmo>
</li>
</comps>

View File

@@ -1,5 +1,168 @@
<?xml version="1.0" encoding="utf-8" ?>
<Defs>
<ThingDef ParentName="ResourceBase">
<defName>WULA_Alloy</defName>
<label>合金</label>
<description></description>
<graphicData>
<texPath>Wula/Item/WULA_Neutronium</texPath>
<graphicClass>Graphic_Single</graphicClass>
</graphicData>
<tradeability>None</tradeability>
<genericMarketSellable>false</genericMarketSellable>
<soundInteract>Metal_Drop</soundInteract>
<soundDrop>Metal_Drop</soundDrop>
<useHitPoints>false</useHitPoints>
<healthAffectsPrice>false</healthAffectsPrice>
<statBases>
<MarketValue>1</MarketValue>
<Mass>1</Mass>
<StuffPower_Armor_Sharp>3</StuffPower_Armor_Sharp>
<StuffPower_Armor_Blunt>3</StuffPower_Armor_Blunt>
<StuffPower_Armor_Heat>1</StuffPower_Armor_Heat>
<StuffPower_Insulation_Cold>0</StuffPower_Insulation_Cold>
<StuffPower_Insulation_Heat>0</StuffPower_Insulation_Heat>
<SharpDamageMultiplier>2</SharpDamageMultiplier>
<BluntDamageMultiplier>3</BluntDamageMultiplier>
</statBases>
<thingCategories>
<li>ResourcesRaw</li>
</thingCategories>
<burnableByRecipe>false</burnableByRecipe>
<smeltable>true</smeltable>
<stuffProps>
<categories>
<li>Metallic</li>
</categories>
<appearance>Metal</appearance>
<commonality>0</commonality>
<allowedInStuffGeneration>false</allowedInStuffGeneration>
<constructEffect>ConstructMetal</constructEffect>
<color>(63, 74, 70)</color>
<soundImpactBullet>BulletImpact_Metal</soundImpactBullet>
<soundMeleeHitSharp>MeleeHit_Metal_Sharp</soundMeleeHitSharp>
<soundMeleeHitBlunt>MeleeHit_Metal_Blunt</soundMeleeHitBlunt>
<soundImpactMelee>Pawn_Melee_Punch_HitBuilding_Metal</soundImpactMelee>
<statOffsets>
<Beauty>0</Beauty>
</statOffsets>
<statFactors>
<MaxHitPoints>5</MaxHitPoints>
<Flammability>0</Flammability>
<WorkToMake>10</WorkToMake>
<WorkToBuild>10</WorkToBuild>
<DoorOpenSpeed>10</DoorOpenSpeed>
<MeleeWeapon_CooldownMultiplier>1.1</MeleeWeapon_CooldownMultiplier>
</statFactors>
</stuffProps>
<terrainAffordanceNeeded>Heavy</terrainAffordanceNeeded>
<allowedArchonexusCount>200</allowedArchonexusCount>
<possessionCount>50</possessionCount>
</ThingDef>
<ThingDef ParentName="ResourceBase">
<defName>WULA_Dark_Matter_Item</defName>
<label>封装的暗物质</label>
<description>由乌拉帝国技术完成封装的一小块暗物质,这种神秘物质具有许多似乎可以打破所谓自然法则的性质。\n\n注意暗物质约束装置很脆弱受到冲击时将引发大范围湮灭反应</description>
<graphicData>
<texPath>Wula/Item/WULA_Dark_Matter_Item</texPath>
<graphicClass>Graphic_Single</graphicClass>
</graphicData>
<tickerType>Normal</tickerType>
<smeltable>false</smeltable>
<genericMarketSellable>false</genericMarketSellable>
<soundInteract>Metal_Drop</soundInteract>
<soundDrop>Metal_Drop</soundDrop>
<useHitPoints>false</useHitPoints>
<healthAffectsPrice>false</healthAffectsPrice>
<statBases>
<MarketValue>1000</MarketValue>
<Mass>0.01</Mass>
<MaxHitPoints>50</MaxHitPoints>
</statBases>
<thingCategories>
<li>ResourcesRaw</li>
</thingCategories>
<burnableByRecipe>false</burnableByRecipe>
<terrainAffordanceNeeded>Medium</terrainAffordanceNeeded>
<allowedArchonexusCount>80</allowedArchonexusCount>
<possessionCount>1</possessionCount>
<comps>
<li Class="CompProperties_Explosive">
<explosiveRadius>30</explosiveRadius>
<explosiveDamageType>BombSuper</explosiveDamageType>
<explosiveExpandPerStackcount>1</explosiveExpandPerStackcount>
<startWickOnDamageTaken>
<li>Bullet</li>
<li>Arrow</li>
<li>ArrowHighVelocity</li>
</startWickOnDamageTaken>
<startWickHitPointsPercent>0.333</startWickHitPointsPercent>
<!-- <preExplosionSpawnThingDef>Filth_Fuel</preExplosionSpawnThingDef> -->
<preExplosionSpawnChance>1</preExplosionSpawnChance>
<wickTicks>1</wickTicks>
</li>
</comps>
</ThingDef>
<ThingDef ParentName="ResourceBase">
<defName>WULA_Neutronium</defName>
<label>零素</label>
<description>零素也称中子元素,是中子星的主要构成成分,相比常规合金更适合作为装甲和近战武器的铸造材料,乌拉帝国通过以暗物质驱动的科技进行材料压缩,可以人为地制造这种强大材料。</description>
<graphicData>
<texPath>Wula/Item/WULA_Neutronium</texPath>
<graphicClass>Graphic_Single</graphicClass>
</graphicData>
<tradeability>None</tradeability>
<genericMarketSellable>false</genericMarketSellable>
<soundInteract>Metal_Drop</soundInteract>
<soundDrop>Metal_Drop</soundDrop>
<useHitPoints>false</useHitPoints>
<healthAffectsPrice>false</healthAffectsPrice>
<statBases>
<MarketValue>1</MarketValue>
<Mass>1</Mass>
<StuffPower_Armor_Sharp>3</StuffPower_Armor_Sharp>
<StuffPower_Armor_Blunt>3</StuffPower_Armor_Blunt>
<StuffPower_Armor_Heat>1</StuffPower_Armor_Heat>
<StuffPower_Insulation_Cold>0</StuffPower_Insulation_Cold>
<StuffPower_Insulation_Heat>0</StuffPower_Insulation_Heat>
<SharpDamageMultiplier>2</SharpDamageMultiplier>
<BluntDamageMultiplier>3</BluntDamageMultiplier>
</statBases>
<thingCategories>
<li>ResourcesRaw</li>
</thingCategories>
<burnableByRecipe>false</burnableByRecipe>
<smeltable>true</smeltable>
<stuffProps>
<categories>
<li>Metallic</li>
</categories>
<appearance>Metal</appearance>
<commonality>0</commonality>
<allowedInStuffGeneration>false</allowedInStuffGeneration>
<constructEffect>ConstructMetal</constructEffect>
<color>(63, 74, 70)</color>
<soundImpactBullet>BulletImpact_Metal</soundImpactBullet>
<soundMeleeHitSharp>MeleeHit_Metal_Sharp</soundMeleeHitSharp>
<soundMeleeHitBlunt>MeleeHit_Metal_Blunt</soundMeleeHitBlunt>
<soundImpactMelee>Pawn_Melee_Punch_HitBuilding_Metal</soundImpactMelee>
<statOffsets>
<Beauty>0</Beauty>
</statOffsets>
<statFactors>
<MaxHitPoints>5</MaxHitPoints>
<Flammability>0</Flammability>
<WorkToMake>10</WorkToMake>
<WorkToBuild>10</WorkToBuild>
<DoorOpenSpeed>10</DoorOpenSpeed>
<MeleeWeapon_CooldownMultiplier>1.1</MeleeWeapon_CooldownMultiplier>
</statFactors>
</stuffProps>
<terrainAffordanceNeeded>Heavy</terrainAffordanceNeeded>
<allowedArchonexusCount>200</allowedArchonexusCount>
<possessionCount>50</possessionCount>
</ThingDef>
<ThingDef>
<defName>WULA_Charge_Cube</defName>
<label>乌拉帝国能源核心</label>
@@ -206,110 +369,6 @@
<possessionCount>50</possessionCount>
</ThingDef>
<ThingDef ParentName="ResourceBase">
<defName>WULA_Dark_Matter_Item</defName>
<label>封装的暗物质</label>
<description>由乌拉帝国技术完成封装的一小块暗物质,这种神秘物质具有许多似乎可以打破所谓自然法则的性质。\n\n注意暗物质约束装置很脆弱受到冲击时将引发大范围湮灭反应</description>
<graphicData>
<texPath>Wula/Item/WULA_Dark_Matter_Item</texPath>
<graphicClass>Graphic_Single</graphicClass>
</graphicData>
<tickerType>Normal</tickerType>
<smeltable>false</smeltable>
<genericMarketSellable>false</genericMarketSellable>
<soundInteract>Metal_Drop</soundInteract>
<soundDrop>Metal_Drop</soundDrop>
<useHitPoints>false</useHitPoints>
<healthAffectsPrice>false</healthAffectsPrice>
<statBases>
<MarketValue>1000</MarketValue>
<Mass>0.01</Mass>
<MaxHitPoints>50</MaxHitPoints>
</statBases>
<thingCategories>
<li>ResourcesRaw</li>
</thingCategories>
<burnableByRecipe>false</burnableByRecipe>
<terrainAffordanceNeeded>Medium</terrainAffordanceNeeded>
<allowedArchonexusCount>80</allowedArchonexusCount>
<possessionCount>1</possessionCount>
<comps>
<li Class="CompProperties_Explosive">
<explosiveRadius>30</explosiveRadius>
<explosiveDamageType>BombSuper</explosiveDamageType>
<explosiveExpandPerStackcount>1</explosiveExpandPerStackcount>
<startWickOnDamageTaken>
<li>Bullet</li>
<li>Arrow</li>
<li>ArrowHighVelocity</li>
</startWickOnDamageTaken>
<startWickHitPointsPercent>0.333</startWickHitPointsPercent>
<!-- <preExplosionSpawnThingDef>Filth_Fuel</preExplosionSpawnThingDef> -->
<preExplosionSpawnChance>1</preExplosionSpawnChance>
<wickTicks>1</wickTicks>
</li>
</comps>
</ThingDef>
<ThingDef ParentName="ResourceBase">
<defName>WULA_Neutronium</defName>
<label>零素</label>
<description>零素也称中子元素,是中子星的主要构成成分,相比常规合金更适合作为装甲和近战武器的铸造材料,乌拉帝国通过以暗物质驱动的科技进行材料压缩,可以人为地制造这种强大材料。</description>
<graphicData>
<texPath>Wula/Item/WULA_Neutronium</texPath>
<graphicClass>Graphic_Single</graphicClass>
</graphicData>
<tradeability>None</tradeability>
<genericMarketSellable>false</genericMarketSellable>
<soundInteract>Metal_Drop</soundInteract>
<soundDrop>Metal_Drop</soundDrop>
<useHitPoints>false</useHitPoints>
<healthAffectsPrice>false</healthAffectsPrice>
<statBases>
<MarketValue>1</MarketValue>
<Mass>1</Mass>
<StuffPower_Armor_Sharp>3</StuffPower_Armor_Sharp>
<StuffPower_Armor_Blunt>3</StuffPower_Armor_Blunt>
<StuffPower_Armor_Heat>1</StuffPower_Armor_Heat>
<StuffPower_Insulation_Cold>0</StuffPower_Insulation_Cold>
<StuffPower_Insulation_Heat>0</StuffPower_Insulation_Heat>
<SharpDamageMultiplier>2</SharpDamageMultiplier>
<BluntDamageMultiplier>3</BluntDamageMultiplier>
</statBases>
<thingCategories>
<li>ResourcesRaw</li>
</thingCategories>
<burnableByRecipe>false</burnableByRecipe>
<smeltable>true</smeltable>
<stuffProps>
<categories>
<li>Metallic</li>
</categories>
<appearance>Metal</appearance>
<commonality>0</commonality>
<allowedInStuffGeneration>false</allowedInStuffGeneration>
<constructEffect>ConstructMetal</constructEffect>
<color>(63, 74, 70)</color>
<soundImpactBullet>BulletImpact_Metal</soundImpactBullet>
<soundMeleeHitSharp>MeleeHit_Metal_Sharp</soundMeleeHitSharp>
<soundMeleeHitBlunt>MeleeHit_Metal_Blunt</soundMeleeHitBlunt>
<soundImpactMelee>Pawn_Melee_Punch_HitBuilding_Metal</soundImpactMelee>
<statOffsets>
<Beauty>0</Beauty>
</statOffsets>
<statFactors>
<MaxHitPoints>5</MaxHitPoints>
<Flammability>0</Flammability>
<WorkToMake>10</WorkToMake>
<WorkToBuild>10</WorkToBuild>
<DoorOpenSpeed>10</DoorOpenSpeed>
<MeleeWeapon_CooldownMultiplier>1.1</MeleeWeapon_CooldownMultiplier>
</statFactors>
</stuffProps>
<terrainAffordanceNeeded>Heavy</terrainAffordanceNeeded>
<allowedArchonexusCount>200</allowedArchonexusCount>
<possessionCount>50</possessionCount>
</ThingDef>
<!-- 制造有机物前体 -->
<ThingDef ParentName="ResourceBase">
<defName>Wula_Organic_Precursor</defName>

View File

@@ -58,6 +58,7 @@
<li Class="WulaFallenEmpire.CompProperties_FlyOverType">
<flyOverType>WULA_Flyover_BaseBuilder</flyOverType>
<isRequiredForDrop>true</isRequiredForDrop>
<laneLevel>3</laneLevel>
</li>
<li Class="WulaFallenEmpire.CompProperties_FlyOverFacilities">
<availableFacilities>
@@ -111,6 +112,13 @@
<selectable>false</selectable>
<alwaysHaulable>false</alwaysHaulable>
<altitudeLayer>MetaOverlays</altitudeLayer>
<comps>
<li Class="WulaFallenEmpire.CompProperties_FlyOverType">
<flyOverType>WULA_Flyover_Airstrick</flyOverType>
<isRequiredForDrop>true</isRequiredForDrop>
<laneLevel>0</laneLevel>
</li>
</comps>
</ThingDef>
<ThingDef ParentName="WULA_Fighter_Base">
<defName>WULA_Fighter_A</defName>

View File

@@ -69,27 +69,27 @@
<!-- 经验核心组件 -->
<li Class="WulaFallenEmpire.CompProperties_ExperienceCore">
<trackedSkill>Melee</trackedSkill> <!-- 或 Melee -->
<experienceMultiplier>1.5</experienceMultiplier>
<experienceMultiplier>1</experienceMultiplier>
<showExperienceInfo>true</showExperienceInfo>
<dataPackDef>WULA_ExperienceDataPack_Melee</dataPackDef>
<experienceThresholds>
<li>
<experienceRequired>1000</experienceRequired>
<experienceRequired>2000</experienceRequired>
<quality>Good</quality>
<messageKey>WULA_WeaponEvolving</messageKey>
</li>
<li>
<experienceRequired>3000</experienceRequired>
<experienceRequired>6000</experienceRequired>
<quality>Excellent</quality>
<messageKey>WULA_WeaponEvolving</messageKey>
</li>
<li>
<experienceRequired>6000</experienceRequired>
<experienceRequired>12000</experienceRequired>
<quality>Masterwork</quality>
<messageKey>WULA_WeaponEvolving</messageKey>
</li>
<li>
<experienceRequired>10000</experienceRequired>
<experienceRequired>20000</experienceRequired>
<quality>Legendary</quality>
<messageKey>WULA_WeaponMastering</messageKey>
</li>
@@ -435,27 +435,27 @@
<!-- 经验核心组件 -->
<li Class="WulaFallenEmpire.CompProperties_ExperienceCore">
<trackedSkill>Shooting</trackedSkill> <!-- 或 Melee -->
<experienceMultiplier>1.5</experienceMultiplier>
<experienceMultiplier>1</experienceMultiplier>
<showExperienceInfo>true</showExperienceInfo>
<dataPackDef>WULA_ExperienceDataPack_Shooting</dataPackDef>
<experienceThresholds>
<li>
<experienceRequired>1000</experienceRequired>
<experienceRequired>2000</experienceRequired>
<quality>Good</quality>
<messageKey>WULA_WeaponEvolving</messageKey>
</li>
<li>
<experienceRequired>3000</experienceRequired>
<experienceRequired>6000</experienceRequired>
<quality>Excellent</quality>
<messageKey>WULA_WeaponEvolving</messageKey>
</li>
<li>
<experienceRequired>6000</experienceRequired>
<experienceRequired>12000</experienceRequired>
<quality>Masterwork</quality>
<messageKey>WULA_WeaponEvolving</messageKey>
</li>
<li>
<experienceRequired>10000</experienceRequired>
<experienceRequired>20000</experienceRequired>
<quality>Legendary</quality>
<messageKey>WULA_WeaponMastering</messageKey>
</li>

View File

@@ -1,37 +1,53 @@
<?xml version="1.0" encoding="utf-8" ?>
<?xml version="1.0" encoding="utf-8"?>
<Defs>
<WulaFallenEmpire.EventUIConfigDef>
<defName>Wula_EventUIConfig</defName>
<!-- General Style -->
<labelFont>Small</labelFont>
<drawBorders>true</drawBorders>
<!-- 主窗口设置 -->
<showMainWindow>false</showMainWindow>
<useDefaultBackground>false</useDefaultBackground>
<customBackgroundImagePath>Wula/Events/tile_large_bg</customBackgroundImagePath>
<!-- <backgroundImagePath>Wula/Events/Portraits/PIA</backgroundImagePath> -->
<windowSize>(600,850)</windowSize>
<!-- 元素显示控制 -->
<showPortrait>true</showPortrait>
<showLabel>false</showLabel>
<showCharacterName>true</showCharacterName>
<showDescriptions>true</showDescriptions>
<showOptions>true</showOptions>
<!-- 游戏控制设置 -->
<pauseGameOnOpen>false</pauseGameOnOpen>
<!-- 元素尺寸 -->
<portraitSize>(600,400)</portraitSize>
<labelSize>(600,40)</labelSize>
<characterNameSize>(600,30)</characterNameSize>
<descriptionsSize>(500,150)</descriptionsSize>
<optionsListSize>(600,200)</optionsListSize>
<optionSize>(500,150)</optionSize>
<!-- 元素间距 (x=上间距, y=下间距) -->
<portraitMargins>(0,10)</portraitMargins>
<labelMargins>(10,0)</labelMargins>
<characterNameMargins>(10,0)</characterNameMargins>
<descriptionsMargins>(10,20)</descriptionsMargins>
<optionsListMargins>(10,0)</optionsListMargins>
<!-- 描述区域内边距 (x=上下间距, y=左右间距) -->
<descriptionsPadding>(10,25)</descriptionsPadding>
<!-- 选项列表内边距 (x=左右间距, y=上下间距) -->
<optionsListPadding>(20,20)</optionsListPadding>
<!-- 选项设置 -->
<optionSpacing>20</optionSpacing>
<!-- 调试和样式 -->
<drawBorders>false</drawBorders>
<showDefName>false</showDefName>
<showLabel>true</showLabel>
<defaultBackgroundImagePath></defaultBackgroundImagePath>
<!-- Virtual Layout Dimensions -->
<lihuiSize>(1093, 687)</lihuiSize>
<nameSize>(593, 530)</nameSize>
<textSize>(593, 330)</textSize>
<optionsWidth>750</optionsWidth>
<!-- Virtual Layout Offsets -->
<textNameOffset>0</textNameOffset>
<optionsTextOffset>0</optionsTextOffset>
<defaultWindowSize>(693, 887)</defaultWindowSize>
<!-- New Layout Dimensions -->
<newLayoutNameSize>(200, 50)</newLayoutNameSize>
<newLayoutLihuiSize>(600, 200)</newLayoutLihuiSize>
<newLayoutTextSize>(600, 200)</newLayoutTextSize>
<newLayoutOptionsWidth>600</newLayoutOptionsWidth>
<newLayoutPadding>20</newLayoutPadding>
<newLayoutTextNameOffset>20</newLayoutTextNameOffset>
<newLayoutOptionsTextOffset>20</newLayoutOptionsTextOffset>
<labelFont>Medium</labelFont>
</WulaFallenEmpire.EventUIConfigDef>
</Defs>
</Defs>