Jump to content

Peewi

Members
  • Posts

    7
  • Joined

  • Last visited

Nexus Mods Profile

About Peewi

Peewi's Achievements

Rookie

Rookie (2/14)

0

Reputation

  1. In my mod I remove the health display and replace it with my own, but keep the rest of the UIUnitFlag. I used to pass 0 and 0 instead of currentHP and maxHP when SetHitPoints is invoked in UIUnitFlag and it completely hid the health bar, but since the Alien Hunters update it results in an empty grey health bar instead. I've messed around with UIUnitFlag some and haven't been able to find a way to completely hide the bar and I was wondering if anyone else knows how to do it.
  2. You can use the class'UIUtilities_Text' static methods to apply html styling to your text. You can also nest them in order to add more tags (i.e. set title font/size as well as add centered html tags). Of course you can always add the html tags yourself, if you want :smile:. After that, it's a matter if using the inherited UIPanel controls (SetPosition, SetX, SetY) to position it accordingly. The position is relative to the how you create your UIIcon or UIText object in the InitPanel(...) or InitText(...) method. Oh, I see. Can I use inline CSS in the HTML tags? I added a slightly offset, black, copy of the text to act as drop shadows. It'd be convenient if I could use CSS text-shadow instead.
  3. I'm currently working on an alternative health display and this is what I've got right now. http://i.imgur.com/1GAL7jR.jpg I'm using UIIcon and UIText to display it. I'm having some problems getting the text to behave quite how I'd like it to. I can use UIText.SetTitle to get large text or I can use UIText.SetCenteredText to center the text, but I haven't found a way to do both at once. Is there some way to freely style UIText or some other text related class I should be using instead? That warning is not a problem. The pattern has to reference the texture, which of course is external to the game packages, but since they're in the same package users will never have one and not the other. Your issue is something else, assuming that all the patterns are pointing to the right textures.
  4. Is there a way to do fallbacks for missing soldier customization mods? Like, if I share my modded Danish soldier with someone that doesn't have the mod, can I make it so he'll show up as a specific default nationality instead of the weird state nation-less it'd currently go int?
  5. Thank you so much for the response! Loc file with the mod name worked.
  6. In regards to my above post, I see that someone has another country mod that adds names and that he did it through defaultproperties on a class instead of a localization file. I'll probably just do that too, it seems easier.
  7. I understand that this is the place to ask about XCOM 2 modding. I've added a few country flags and would like to add custom name lists to go with them, which I'm having some trouble with. I'm currently selecting the Norwegian name lists in my own snippetted version of the X2StrategyElement_DefaultCountries script. There are some things that I don't entirely understand, but it works, even with multiple mods with classes called that. I see that the default name lists are in the XComGame localization file, which are added to arrays defined in XGCharacterGenerator. I was hoping I could have my own XGCharacterGenerator, the same way I have my own X2StrategyElement_DefaultCountries, but I get this error when building: Error, Unparsed class 'X2StrategyGameRulesetDataStructures' found while validating DependsOn entries for 'X2StrategyElement_DefaultCountries'I tried adding my own class like this: class NameArrays extends Object; // Icelandic var localized array<string> m_arrIsMFirstNames; var localized array<string> m_arrIsFFirstNames; var localized array<string> m_arrIsLastNames; and add localization strings to it like this: [NameArrays] ; ------------------------------------------ ; --------------ICELAND--------------------- ; ------------------------------------------ m_arrIsMFirstNames[0]="male1" m_arrIsMFirstNames[1]="male2" m_arrIsFFirstNames[0]="female1" m_arrIsFFirstNames[1]="female2" m_arrIsLastNames[0]="last1" m_arrIsLastNames[1]="last2"Which builds just fine, but the game doesn't launch and the console spews array out of bounds errors. I guess the localization files aren't getting loaded? I have also found the XComNameList.ini file and I'm wondering if that's useful, but I don't know how to use it.
×
×
  • Create New...