Jump to content

[WIP] [1.12.x] HUDReplacer - (v1.2.11-beta)


UltraJohn

Recommended Posts

Look at the spam I get in the log lol

[LOG 16:05:51.462] Load(Texture): Naztheme/Editor/EditorButtons_Load#256x256
[WRN 16:05:51.466] Texture load error in '/home/ivyroot/Utility/KSP/GameData/Naztheme/Editor/EditorButtons_Load#256x256.png': HTTP/1.1 404 Not Found

There's like 200 of them... Apparently it considers that the file is EditorButtons_Load ... Wait what they use HTTP/1.1 to load images?????

That's the stock image loader btw, not HUDReplacer.

Link to comment
Share on other sites

22 minutes ago, Nazalassa said:

Look at the spam I get in the log lol

[LOG 16:05:51.462] Load(Texture): Naztheme/Editor/EditorButtons_Load#256x256
[WRN 16:05:51.466] Texture load error in '/home/ivyroot/Utility/KSP/GameData/Naztheme/Editor/EditorButtons_Load#256x256.png': HTTP/1.1 404 Not Found

There's like 200 of them... Apparently it considers that the file is EditorButtons_Load ... Wait what they use HTTP/1.1 to load images?????

That's the stock image loader btw, not HUDReplacer.

Yeah I noticed those as well a while back. Kinda funky lol

Link to comment
Share on other sites

I'm changing the loading screen background (the thing in the bottom-right)

Spoiler

klgzIqb.png

If you want to know what all the UiElement_xx are:

03: Funds display bg
04: Funds display tape bg
05: green Funds icon
06: red Funds icon
10: science display bg
11: science display
12: science display icon
13: some kind of background
14: reputation display bg
17: reputation tape
20: VAB/SPH vessel price display (I accidentally deleted it but I could get it back)
24: Funds/rep/science show/hide in flight (appbar)

Also I added another swap file of 4 GiB so KSP doesn't crash with Firefox and Gimp open (which it did a lot before, it was quite annoying).

Edited by Nazalassa
Forgot to add image
Link to comment
Share on other sites

[Major update]  Naztheme 0.3a is out! About halfway done with the flight UI (what's left in the flight UI: some stuff tied to maneuvers, some stuff tied the the "staging quadrant" (not significant), the altimeter).

Some screenshots:

Spoiler

uB21tF5.png

hPRw8jy.png

A7GWGLn.png

GfiNUaT.png

yHmSxQ0.png

Link to comment
Share on other sites

15 minutes ago, Nazalassa said:

Inconsistency #4

Apparently, fonts are images. I'll try to modify  Font Texture#256x256.png  and  ARIAL SDF Atlas#1024x1024  and show you the results lol

Sounds fun.

If that works I'm gonna be impressed.

Link to comment
Share on other sites

On 5/4/2023 at 5:12 PM, UltraJohn said:

If that works I'm gonna be impressed.

So you are (lol)

oR522iO.png

The name of the font used for like everything but ToolBarController's window is  NotoSans-Regular SDF Atlas#2048x2048.

 

OK, so now I have to restart the game...

 

--

OK, so now I need to change all of that to Unifont.

Edited by Nazalassa
Removed outdated Github link
Link to comment
Share on other sites

  • 3 weeks later...

Hello! I have an issue where HUDReplacer doesn't always replace the textures of mods.

In this image, both [x] Science! and ResearchBodies are themed which is what I'd like to always happen (DOE/Unity default theme isn't themed yet).
Screenshot-5500.png

However in this screenshot, [x] Science! and ResearchBodies aren't themed (while Trajectories is always themed).
Screenshot-5573.png

This seems to be fixed by installing the dev version & pressing Q to refresh the theme but that isn't optimal (Q and E are the roll controls and I need them for muh planes).
KSP.log (only for the not-themed mods)
My theme        

Just realized that HUDReplacer is All Rights Reserved so the link's been removed

My Theme:

Spoiler

[x] Science! Continued (xScienceContinued 6.0.1.4)
B9 Part Switch (B9PartSwitch v2.20.0)
BetterBurnTime (BetterBurnTime 1.10)
BetterTimeWarpContinued (BetterTimeWarpCont 2.3.13)
Breaking Ground (BreakingGround-DLC 1.7.1)
Chatterer (Chatterer 0.9.99)
ClickThrough Blocker (ClickThroughBlocker 1:2.1.10.21)
Community Category Kit (CommunityCategoryKit v112.0.1)
Community Resource Pack (CommunityResourcePack v112.0.1)
Community Tech Tree (CommunityTechTree 1:3.4.4)
Community Terrain Texture Pack (CommunityTerrainTexturePack 1:1.0.5)
Contract Configurator (ContractConfigurator v2.6.0.0)
Contract Pack: Exploration Plus (ContractConfigurator-ExplorationPlus 2.0.1)
Contract Pack: Research Advancement Division (ResearchAdvancementDivision 1.2.1)
Contract Pack: Tourism Plus (ContractConfigurator-Tourism 1.5.2)
CorrectCoL (CorrectCoL 1.6.5.4)
Custom Barn Kit (CustomBarnKit 1.1.22.0)
Custom Pre Launch Checks (CustomPreLaunchChecks 1.8.1.1)
Decoupler Shroud (DecouplerShroud 0.8.0)
Deployable Engines Plugin (DeployableEngines 1.3.1)
Distant Object Enhancement /L (DistantObject v2.1.1.12)
Distant Object Enhancement /L default config (DistantObject-default v2.1.1.12)
Environmental Visual Enhancements Redux (EnvironmentalVisualEnhancements 3:1.11.7.1)
Firespitter (Firespitter v7.17)
Firespitter Core (FirespitterCore v7.17)
Firespitter Resources config (FirespitterResourcesConfig v7.17)
Flight Tracker (FlightTracker 3.0.0.3)
Galileo's Planet Pack (GPP 1:1.6.8.0)
GPP HighRes clouds (GPPCloudsHighRes 1.6.8.0)
GPP Textures (GPPTextures 4.2.1)
Grannus Ribbons from GEP (Grannus-RibbonPack-FromGEP 1.2.8)
Harmony 2 (Harmony2 2.2.1.0)
Hide Empty Tech Tree Nodes (HideEmptyTechNodes 1.3.2)
HUD Replacer (HUDReplacer 1.0.4-beta)
Kerbal Attachment System (KAS 1.12)
Kerbal Changelog (KerbalChangelog v1.4.2)
Kerbal Inventory System (KIS 1.29)
Kerbal Joint Reinforcement Continued (KerbalJointReinforcementContinued v3.7.1.0)
Kerbal Konstructs (KerbalKonstructs v1.8.6.0)
Konstruction (Konstruction v112.0.1)
Kopernicus Planetary System Modifier (Kopernicus 2:release-1.12.1-166)
KSP Community Fixes (KSPCommunityFixes 1.28.1)
Making History (MakingHistory-DLC 1.12.1)
MissingHistory (MissingHistory 1.9.3)
ModularFlightIntegrator (ModularFlightIntegrator 1.2.10.0)
Module Manager (ModuleManager 4.2.2)
NavBall Texture Changer Updated (NavBallTextureChangerUpdated 2.0.0.11)
Near Future IVA Props (NearFutureProps 1:0.7.1)
Near Future Launch Vehicles (NearFutureLaunchVehicles 2.2.0)
Near Future Spacecraft (NearFutureSpacecraft 1.4.3)
Parallax (Parallax 2.0.6)
Parallax - Stock Planet Textures (Parallax-StockTextures 2.0.0)
Parallax - Stock Scatter Textures (Parallax-StockScatterTextures 2.0.1)
PlanetShine (PlanetShine 0.2.6.6)
PlanetShine - Default configuration (PlanetShine-Config-Default 0.2.6.6)
QuickSAS (QuickSAS 1:1.2.0.9)
Reentry Particle Effect Renewed (ReentryParticleEffect 1.9.1.1)
REPOSoftTech-Agencies (REPOSoftTech-Agencies V1.5.9.0)
ResearchBodies (ResearchBodies 2:V1.13.0)
ReStock (ReStock 1.4.3)
ReStock+ (ReStockPlus 1.4.3)
Rocket Sound Enhancement (RocketSoundEnhancement 0.9.7)
Rocket Sound Enhancement - Default (RocketSoundEnhancement-Config-Default 1.2.4)
SCANsat (SCANsat v20.4)
scatterer (Scatterer 3:v0.0772)
Scatterer Default Config (Scatterer-config 3:v0.0772)
Scatterer Sunflare (Scatterer-sunflare 3:v0.0772)
SETI-MetaModPack (SETI-MetaModPack 1.3.0.0)
Shabby (Shabby 0.3.0.0)
SmokeScreen - Extended FX Plugin (SmokeScreen 2.8.14.0)
SpaceTux Library (SpaceTuxLibrary 0.0.8.5)
Stockalike Station Parts Expansion Redux (StationPartsExpansionRedux 2.0.10)
Stockalike Station Parts Expansion Redux - Internal Spaces (StationPartsExpansionRedux-IVAs 2.0.10)
Strategia (Strategia 1.8.0)
Tarsier Space Technology with Galaxies Continued... (TarsierSpaceTechnologyWithGalaxies 1:7.13)
Toolbar (Toolbar 1:1.8.1)
Toolbar Controller (ToolbarController 1:0.1.9.9)
Trajectories (Trajectories v2.4.3)
Transfer Window Planner (TransferWindowPlanner v1.8.0.0)
TUFX (TUFX 1.0.6.0)
Un Kerballed Start (UnKerballedStart .1.3.2)
USI Core (USI-Core v112.0.1)
USI Exploration Pack (USI-EXP v112.0.1)
USI Kolonization Systems (MKS/OKS) (UKS 1:v112.0.1)
USI Tools (USITools v112.0.1)
Waterfall - Restock (WaterfallRestock 0.2.3)
Waterfall Core (Waterfall 0.9.0)
Zero MiniAVC (ZeroMiniAVC 1:1.1.3.2)
& Soundtrack Editor Forked (4.7.18)

 

Edited by zapsnh
Link to comment
Share on other sites

4 hours ago, zapsnh said:

Hello! I have an issue where HUDReplacer doesn't always replace the textures of mods.

In this image, both [x] Science! and ResearchBodies are themed which is what I'd like to always happen (DOE/Unity default theme isn't themed yet).
Screenshot-5500.png

However in this screenshot, [x] Science! and ResearchBodies aren't themed (while Trajectories is always themed).
Screenshot-5573.png

This seems to be fixed by installing the dev version & pressing Q to refresh the theme but that isn't optimal (Q and E are the roll controls and I need them for muh planes).
KSP.log (only for the not-themed mods)
My theme

Mod list:

  Reveal hidden contents

[x] Science! Continued (xScienceContinued 6.0.1.4)
B9 Part Switch (B9PartSwitch v2.20.0)
BetterBurnTime (BetterBurnTime 1.10)
BetterTimeWarpContinued (BetterTimeWarpCont 2.3.13)
Breaking Ground (BreakingGround-DLC 1.7.1)
Chatterer (Chatterer 0.9.99)
ClickThrough Blocker (ClickThroughBlocker 1:2.1.10.21)
Community Category Kit (CommunityCategoryKit v112.0.1)
Community Resource Pack (CommunityResourcePack v112.0.1)
Community Tech Tree (CommunityTechTree 1:3.4.4)
Community Terrain Texture Pack (CommunityTerrainTexturePack 1:1.0.5)
Contract Configurator (ContractConfigurator v2.6.0.0)
Contract Pack: Exploration Plus (ContractConfigurator-ExplorationPlus 2.0.1)
Contract Pack: Research Advancement Division (ResearchAdvancementDivision 1.2.1)
Contract Pack: Tourism Plus (ContractConfigurator-Tourism 1.5.2)
CorrectCoL (CorrectCoL 1.6.5.4)
Custom Barn Kit (CustomBarnKit 1.1.22.0)
Custom Pre Launch Checks (CustomPreLaunchChecks 1.8.1.1)
Decoupler Shroud (DecouplerShroud 0.8.0)
Deployable Engines Plugin (DeployableEngines 1.3.1)
Distant Object Enhancement /L (DistantObject v2.1.1.12)
Distant Object Enhancement /L default config (DistantObject-default v2.1.1.12)
Environmental Visual Enhancements Redux (EnvironmentalVisualEnhancements 3:1.11.7.1)
Firespitter (Firespitter v7.17)
Firespitter Core (FirespitterCore v7.17)
Firespitter Resources config (FirespitterResourcesConfig v7.17)
Flight Tracker (FlightTracker 3.0.0.3)
Galileo's Planet Pack (GPP 1:1.6.8.0)
GPP HighRes clouds (GPPCloudsHighRes 1.6.8.0)
GPP Textures (GPPTextures 4.2.1)
Grannus Ribbons from GEP (Grannus-RibbonPack-FromGEP 1.2.8)
Harmony 2 (Harmony2 2.2.1.0)
Hide Empty Tech Tree Nodes (HideEmptyTechNodes 1.3.2)
HUD Replacer (HUDReplacer 1.0.4-beta)
Kerbal Attachment System (KAS 1.12)
Kerbal Changelog (KerbalChangelog v1.4.2)
Kerbal Inventory System (KIS 1.29)
Kerbal Joint Reinforcement Continued (KerbalJointReinforcementContinued v3.7.1.0)
Kerbal Konstructs (KerbalKonstructs v1.8.6.0)
Konstruction (Konstruction v112.0.1)
Kopernicus Planetary System Modifier (Kopernicus 2:release-1.12.1-166)
KSP Community Fixes (KSPCommunityFixes 1.28.1)
Making History (MakingHistory-DLC 1.12.1)
MissingHistory (MissingHistory 1.9.3)
ModularFlightIntegrator (ModularFlightIntegrator 1.2.10.0)
Module Manager (ModuleManager 4.2.2)
NavBall Texture Changer Updated (NavBallTextureChangerUpdated 2.0.0.11)
Near Future IVA Props (NearFutureProps 1:0.7.1)
Near Future Launch Vehicles (NearFutureLaunchVehicles 2.2.0)
Near Future Spacecraft (NearFutureSpacecraft 1.4.3)
Parallax (Parallax 2.0.6)
Parallax - Stock Planet Textures (Parallax-StockTextures 2.0.0)
Parallax - Stock Scatter Textures (Parallax-StockScatterTextures 2.0.1)
PlanetShine (PlanetShine 0.2.6.6)
PlanetShine - Default configuration (PlanetShine-Config-Default 0.2.6.6)
QuickSAS (QuickSAS 1:1.2.0.9)
Reentry Particle Effect Renewed (ReentryParticleEffect 1.9.1.1)
REPOSoftTech-Agencies (REPOSoftTech-Agencies V1.5.9.0)
ResearchBodies (ResearchBodies 2:V1.13.0)
ReStock (ReStock 1.4.3)
ReStock+ (ReStockPlus 1.4.3)
Rocket Sound Enhancement (RocketSoundEnhancement 0.9.7)
Rocket Sound Enhancement - Default (RocketSoundEnhancement-Config-Default 1.2.4)
SCANsat (SCANsat v20.4)
scatterer (Scatterer 3:v0.0772)
Scatterer Default Config (Scatterer-config 3:v0.0772)
Scatterer Sunflare (Scatterer-sunflare 3:v0.0772)
SETI-MetaModPack (SETI-MetaModPack 1.3.0.0)
Shabby (Shabby 0.3.0.0)
SmokeScreen - Extended FX Plugin (SmokeScreen 2.8.14.0)
SpaceTux Library (SpaceTuxLibrary 0.0.8.5)
Stockalike Station Parts Expansion Redux (StationPartsExpansionRedux 2.0.10)
Stockalike Station Parts Expansion Redux - Internal Spaces (StationPartsExpansionRedux-IVAs 2.0.10)
Strategia (Strategia 1.8.0)
Tarsier Space Technology with Galaxies Continued... (TarsierSpaceTechnologyWithGalaxies 1:7.13)
Toolbar (Toolbar 1:1.8.1)
Toolbar Controller (ToolbarController 1:0.1.9.9)
Trajectories (Trajectories v2.4.3)
Transfer Window Planner (TransferWindowPlanner v1.8.0.0)
TUFX (TUFX 1.0.6.0)
Un Kerballed Start (UnKerballedStart .1.3.2)
USI Core (USI-Core v112.0.1)
USI Exploration Pack (USI-EXP v112.0.1)
USI Kolonization Systems (MKS/OKS) (UKS 1:v112.0.1)
USI Tools (USITools v112.0.1)
Waterfall - Restock (WaterfallRestock 0.2.3)
Waterfall Core (Waterfall 0.9.0)
Zero MiniAVC (ZeroMiniAVC 1:1.1.3.2)
& Soundtrack Editor Forked (4.7.18)

 

My guess is that the textures are loaded dynamically, i.e they are loaded after the scene change (from whatever to flight), but HUDReplacer only replaces textures during scene changes (and by pressing 'q' in the dev version). I observed the issue twice while working on Naztheme, and it was always with DLC pop-ups (KAL editor, "mission dialog"), so maybe that's an issue with mods and DLCs? @UltraJohn said they'll try to fix it.

btw, great theme! Is that the "obsidianUI" theme I've heard of?

Link to comment
Share on other sites

3 minutes ago, zapsnh said:

Nope, this is my personal one.

... how long did it take? I've worked for a month and a half on Naztheme (with breaks ofc) and from what I see yours is a bit more complete.

Oh, I forgot - welcome to the forums :)

Link to comment
Share on other sites

1 minute ago, Nazalassa said:

... how long did it take? I've worked for a month and a half on Naztheme (with breaks ofc) and from what I see yours is a bit more complete.

I started around mid-April (~1 month). I based most of my textures of yours (thx!) and the default example theme. Doing a theme like my theme seems a bit easier due to it not being centered around pixel-perfect textures and being able to use icons from the game instead of creating new ones.

Link to comment
Share on other sites

Just now, zapsnh said:

Doing a theme like my theme seems a bit easier due to it not being centered around pixel-perfect textures and being able to use icons from the game instead of creating new ones.

Maybe I'll make another, flatter, not-pixel-precise theme after I'll have "finished" Naztheme. Maybe.

I found an old thread about retheme-ing (??) KSP, which has screenshots from which we (mostly you :))  can draw inspiration; I'll put it here:

Spoiler

Apparently, someone tried to make it a mod:

I have to go, UI elements are waiting :D

Link to comment
Share on other sites

Another (very minor) issue. I've managed to change the how cursor looks but it only does it for the left & right click icons and not the main one.

Not really a Unity dev so take this with a kilogram of salt:

Spoiler

I'm assuming that KSP auto-sets the cursor to the default texture once on startup (which loads the texture and gives HUDReplacer no chance to replace it) and sets the left and right click textures when the click occurs so if I don't do clicks while loading it gives HUDReplacer a chance to replace em. So, (very out of my expertise) if you call Cursor.SetCursor after startup/whenever you press Q, it should hopefully "fix" it. Hopefully.

However if Cursor.SetCursor gets called whenever a click occurs (and changes back to the neutral texture), why doesn't it change to the new texture? Is the texture already cached in RAM?
(reminder that i'm not a unity or a microsoft java (C#) dev so if the logic is different, eh ¯\_(ツ)_/¯)

 


The texture files are:
basicNeutral.png (32x32) Normal  <<<< doesn't work
basicElectricLime.png (32x32) Left click
basicDisabled.png (32x32) Right click
and the hotspot (i.e. where the cursor points) is around (6, 0)
p.s. i found the textures through painstakingly skimming through the log file seeing if there was a texture that kinda matched the cursors' icon (electriclime is a good name lol)

(no pics since screenshots don't capture cursors and I'm too lazy to use my phone)

Link to comment
Share on other sites

7 minutes ago, zapsnh said:

Another (very minor) issue. I've managed to change the how cursor looks but it only does it for the left & right click icons and not the main one.

Not really a Unity dev so take this with a kilogram of salt:

  Reveal hidden contents

I'm assuming that KSP auto-sets the cursor to the default texture once on startup (which loads the texture and gives HUDReplacer no chance to replace it) and sets the left and right click textures when the click occurs so if I don't do clicks while loading it gives HUDReplacer a chance to replace em. So, (very out of my expertise) if you call Cursor.SetCursor after startup/whenever you press Q, it should hopefully "fix" it. Hopefully.

However if Cursor.SetCursor gets called whenever a click occurs (and changes back to the neutral texture), why doesn't it change to the new texture? Is the texture already cached in RAM?
(reminder that i'm not a unity or a microsoft java (C#) dev so if the logic is different, eh ¯\_(ツ)_/¯)

 


The texture files are:
basicNeutral.png (32x32) Normal  <<<< doesn't work
basicElectricLime.png (32x32) Left click
basicDisabled.png (32x32) Right click
and the hotspot (i.e. where the cursor points) is around (6, 0)
p.s. i found the textures through painstakingly skimming through the log file seeing if there was a texture that kinda matched the cursors' icon (electriclime is a good name lol)

(no pics since screenshots don't capture cursors and I'm too lazy to use my phone)

Trying right now (I may have to disable cursorDeleter)

--

Nah, doesn't work, it does not replace WAIT I HAVE AN IDEA

Link to comment
Share on other sites

So in fact the pressed images do work when priority is set to 65535, but not 8. I'm trying with 4294967295 (uint32 limit)

Also I am browsing the source of mods that do stuff during startup (currently with ModuleManager) to try to find how to make stuff run at startup.

Still doesn't work, trying priority 2147483648 (signed int32 limit)

Link to comment
Share on other sites

3 minutes ago, Nazalassa said:

So in fact the pressed images do work when priority is set to 65535, but not 8. I'm trying with 4294967295 (uint32 limit)

Wait, my theme has them set to 2 (it's in the theme now) and they're (pressed images) working. Might have something to do with KSP Community fixes though.

Edited by zapsnh
nvm works without KSPCF
Link to comment
Share on other sites

Found something! MM uses

[KSPAddon(KSPAddon.Startup.Instantly, true)]

which isn't present in HUDReplacer source.

The function to call on startup is either Awake  or  Start . (have a look at https://github.com/sarbian/ModuleManager/blob/master/ModuleManager/ModuleManager.cs)

@UltraJohn I made a pull request: https://github.com/UltraJohn/HUDReplacer/pull/3

 

Also maybe try adding

[KSPAddon(KSPAddon.Startup.EveryScene, false)]

so that it works in every scene? Dunno.

 

(https://www.kerbalspaceprogram.com/ksp/api/class_k_s_p_addon.html)

Maybe the normal cursor isn't  basicNeutral#32x32  after all..?.

Edited by Nazalassa
Link to comment
Share on other sites

26 minutes ago, Nazalassa said:

Found something! MM uses

[KSPAddon(KSPAddon.Startup.Instantly, true)]

which isn't present in HUDReplacer source.

The function to call on startup is either Awake  or  Start . (have a look at https://github.com/sarbian/ModuleManager/blob/master/ModuleManager/ModuleManager.cs)

 

Also maybe try adding

[KSPAddon(KSPAddon.Startup.EveryScene, false)]

so that it works in every scene? Dunno.

 

(https://www.kerbalspaceprogram.com/ksp/api/class_k_s_p_addon.html)

Maybe the normal cursor isn't  basicNeutral#32x32  after all..?.

I still think that basicNeutral is getting cached in RAM when it loads (therefore making HUDReplacer unable to change it) since if you make textures for basicElectricLime.png && basicDisabled.png and you click while loading, they don't appear. (and if you don't, they do appear)

(reminder that i'm not a unity or a microsoft java (C#) dev)

Edited by zapsnh
Link to comment
Share on other sites

2 minutes ago, zapsnh said:

I still think that basicNeutral is getting cached in RAM when it loads (therefore making HUDReplacer unable to change it) since if you make textures for basicElectricLime.png && basicDisabled.png and you click while loading, they don't appear. (and if you don't, they do appear)

(reminder that i'm not a unity or a microsoft java (C#) dev)

So that explains why it didn't work first time, cuz I clicked (so that's not priority's fault)

Link to comment
Share on other sites

Welcome @zapsnh ! I can see you guys have been hard at work making some awesome UI mods :)

There's a lot of comments to skim through so bear with me if I forget to reply to some of it.

9 hours ago, zapsnh said:

I have an issue where HUDReplacer doesn't always replace the textures of mods.

This is indeed mostly due to what @Nazalassasaid, that the textures are loaded on demand when you open the menus ingame, and thus not existing when the scene change is happening. HUDReplacer works by iterating through all the textures in the scene that are loaded in after scene switch and swapping them if a match is found. As you've noticed, using the Q function of the dev build works, but is very suboptimal as it induces a hefty lag spike, due to the compute time it takes to go through all textures. Therefore it's not feasible to use this feature for regular gameplay and a better way needs to be found. That's the part I'm working on, but is quite tricky. If anyone knows of a good implementation, do let me know!

Also, keep in mind that I didn't inherently make any adjustments to support textures from mods, but I'll gladly expand on this to make it work as well as I can. Though some things may be out of my hand and might require those mods to have alternative textures bundled with the mods themselves.

 

2 hours ago, zapsnh said:

Another (very minor) issue. I've managed to change the how cursor looks but it only does it for the left & right click icons and not the main one.

I did notice this back when I first made this mod. I haven't really looked into why, but my guess is that the mouse cursor is not stored as a game object, and thus does not contain a reference to a Texture2D object. The solution would be to add a special case for the mouse in code, which I will look into.

 

2 hours ago, Nazalassa said:

So in fact the pressed images do work when priority is set to 65535, but not 8. I'm trying with 4294967295 (uint32 limit)

 

Priority should have no effect on it working or not. What it does is let HUDReplacer know that if there are multiple configs with the same texture names, it will pick the ones from the config with the highest number.

 

1 hour ago, Nazalassa said:

Also maybe try adding

[KSPAddon(KSPAddon.Startup.EveryScene, false)]

so that it works in every scene? Dunno.

I don't think this will make the cursor load. If it doesn't exist as a Texture2D, then none of the scene types will have an effect.

Edited by UltraJohn
Link to comment
Share on other sites

This thread is quite old. Please consider starting a new thread rather than reviving this one.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...