Jump to content

[1.12.x] Toolbar Controller (for modders)


linuxgurugamer

Recommended Posts

1 hour ago, linuxgurugamer said:

Do you have any other mods which control the visibility of buttons?

I don't believe so, but I do have a lot of mods, so it is certainly possible.

Here's my modlist exported from CKAN:

[x] Science! Continued (xScienceContinued 6.0.1.2)
AlphaMensae's Modular Launch Pads (ModularLaunchPads 2.5.3)
Astrogator (Astrogator v1.0.0)
Astronomer's Visual Pack (AstronomersVisualPack 3:v4.13)
Astronomer's Visual Pack-8k Textures (AVP-8kTextures v1.13)
AtmosphereAutopilot (Fly-By-Wire) (AtmosphereAutopilot v1.6.0)
B9 Part Switch (B9PartSwitch v2.20.0)
Breaking Ground (BreakingGround-DLC 1.7.1)
ClickThrough Blocker (ClickThroughBlocker 1:2.1.10.18)
Community Category Kit (CommunityCategoryKit v112.0.1)
Community Delta-V Maps (CommunityDeltaVMaps 2:2.8)
Community Resource Pack (CommunityResourcePack v112.0.1)
Community Tech Tree (CommunityTechTree 1:3.4.4)
Community Terrain Texture Pack (CommunityTerrainTexturePack 1:1.0.4)
Contract Configurator (ContractConfigurator v2.2.1.0)
Contract Pack: Bases and Stations Reborn (ContractConfigurator-KerbinSpaceStation 2:3.7.3)
Contract Pack: Clever Sats (ContractConfigurator-CleverSats 1.4)
Contract Pack: Exploration Plus (ContractConfigurator-ExplorationPlus 2.0.1)
Contract Pack: Field Research (ContractConfigurator-FieldResearch 1.2.2)
Contract Pack: Kerbal Academy (ContractConfigurator-KerbalAcademy 1.1.10)
Contract Pack: Research Advancement Division (ResearchAdvancementDivision 1.2.1)
Contract Pack: Tourism Expanded (TourismExpanded 1.0.2)
Contract Pack: Tourism Plus (ContractConfigurator-Tourism 1.5.2)
Crowd Sourced Science (CrowdSourcedScience v6.0)
Cryo Tanks (CryoTanks 1.6.5)
Cryo Tanks Core (CryoTanks-Core 1.6.5)
Cryogenic Engines (CryoEngines 1:2.0.6)
Cryogenic Engines - Near Future Aeronautics (CryoEngines-NFAero 2.0.6)
Deployable Engines Plugin (DeployableEngines 1.3.1)
Distant Object Enhancement /L (DistantObject v2.1.1.11)
Distant Object Enhancement /L default config (DistantObject-default v2.1.1.11)
Dynamic Battery Storage (DynamicBatteryStorage 2:2.2.5.0)
Environmental Visual Enhancements Redux (EnvironmentalVisualEnhancements 3:1.11.7.1)
Ferram Aerospace Research Continued (FerramAerospaceResearchContinued 3:0.16.1.1)
GravityTurn Continued (GravityTurnContinued 3:1.8.2.3)
Harmony 2 (Harmony2 2.2.1.0)
Heat Control (HeatControl 0.6.1)
Hide Empty Tech Tree Nodes (HideEmptyTechNodes 1.3.2)
Kerbal Actuators (KerbalActuators v1.8.5)
Kerbal Atomics (KerbalAtomics 1:1.3.3)
Kerbal Atomics - Other Mod Support (KerbalAtomics-NTRModSupport 1.3.3)
Kopernicus Planetary System Modifier (Kopernicus 2:release-1.12.1-139)
KSP Community Fixes (KSPCommunityFixes 1.23.0)
KSP Rescue Pod Fix (KSPRescuePodFix 1.6.4.14)
KSPBurst (KSPBurst v1.5.5.1)
Making History (MakingHistory-DLC 1.12.1)
ModularFlightIntegrator (ModularFlightIntegrator 1.2.10.0)
Module Manager (ModuleManager 4.2.2)
Near Future Aeronautics (NearFutureAeronautics 2.1.1)
Near Future Electrical (NearFutureElectrical 1.2.3)
Near Future Electrical Core (NearFutureElectrical-Core 1.2.3)
Near Future Exploration (NearFutureExploration 1.1.2)
Near Future IVA Props (NearFutureProps 1:0.7.1)
Near Future Launch Vehicles (NearFutureLaunchVehicles 2.2.0)
Near Future Propulsion (NearFuturePropulsion 1.3.5)
Near Future Propulsion - Xenon Hall Effect Thrusters (NearFuturePropulsion-XenonHETs 1.3.5)
Near Future Solar (NearFutureSolar 1.3.2)
Near Future Solar Core (NearFutureSolar-Core 1.3.2)
Near Future Spacecraft (NearFutureSpacecraft 1.4.3)
Outer Planets Mod (OuterPlanetsMod 2:2.2.10)
PAPI Lights (PAPILights 0.5.0.6)
Parallax (Parallax 2.0.4)
Parallax - Stock Planet Textures (Parallax-StockTextures 2.0.0)
Parallax - Stock Scatter Textures (Parallax-StockScatterTextures 2.0.1)
Parallax for OPM (Parallax-OuterPlanetsMod v1.0.1)
Patch Manager (PatchManager 0.0.17.6)
PlanetShine (PlanetShine 0.2.6.6)
PlanetShine - Default configuration (PlanetShine-Config-Default 0.2.6.6)
Procedural Parts (ProceduralParts v2.4.3)
Procedural Parts - Hazard Tanks Textures (HazardTanksTextures 1.0)
Procedural Parts - MainSailor's Procedural Textures - Essential Textures and Flag (MainSailorTextures-Essentials 2.0.0.0.1)
Procedural Parts - MainSailor's Procedural Textures - Fairings Textures (MainSailorTextures-Fairings 2.0.0.0.1)
Procedural Parts - MainSailor's Procedural Textures - Historic Textures (MainSailorTextures-Historical 2.0.0.0.1)
Procedural Parts - Ven's Revamp Style Textures (VensStylePPTextures 1.1)
RCS Build Aid (RCSBuildAid v1.0.6)
Real Antennas (RealAntennas v2.1.1)
Real Plume (RealPlume 2:v13.3.2)
Real Plume - Stock Configs (RealPlume-StockConfigs v4.0.8)
RealChute Parachute Systems (RealChute v1.4.8.3)
ReStock (ReStock 1.4.3)
ReStock+ (ReStockPlus 1.4.3)
Rocket Sound Enhancement (RocketSoundEnhancement 0.9.6)
Rocket Sound Enhancement - Default (RocketSoundEnhancement-Config-Default 1.2.4)
Routine Mission Manager (RoutineMissionManager 1:0.4.0.2)
SCANsat (SCANsat v20.4)
Scatterer (Scatterer 3:v0.0838)
Scatterer Default Config (Scatterer-config 3:v0.0838)
Scatterer Sunflare (Scatterer-sunflare 3:v0.0838)
Science - Full Reward! (Continued) (Science-Full-Reward v5.2)
SmokeScreen - Extended FX Plugin (SmokeScreen 2.8.14.0)
SpaceTux Library (SpaceTuxLibrary 0.0.8.4)
Staged Animation (StagedAnimation v2.0)
Station Keeping (StationKeeping 1:0.2.2.3)
Stockalike Station Parts Expansion Redux (StationPartsExpansionRedux 2.0.10)
Stockalike Station Parts Expansion Redux - Internal Spaces (StationPartsExpansionRedux-IVAs 2.0.10)
Toolbar Controller (ToolbarController 1:0.1.9.8)
Trajectories (Trajectories v2.4.3)
TUFX (TUFX 1.0.5.0)
TweakScale Redistributable (TweakScale-Redist v2.4.6.18)
Waterfall Core (Waterfall 0.9.0)

Link to comment
Share on other sites

4 hours ago, Fwiffo said:

Also, I'm experiencing the same bug as  @TelluriumCrystal reported here (i.e. "None" setting not working, and duplicating buttons instead).  Behavior is exactly as he described.  The only mod installed in my case is UbioWeldContinuum (and its dependancies).

Log file, please

15 hours ago, TelluriumCrystal said:

Here's the KSP.log (as an aside, how the heck is this thing 6 MB?): 

I'd prefer the Player.log.  The player.log you uploaded is either incomplete or just doesn't have what I need.

 

I can't say I've seen this before.  I have just tested it, and it isn't happening, at least for now.  I'll need either one of the following:

A specific set of steps to duplicate the issue, beginning with starting the game

A log file (Player.log) which is from a run when it actually happened.

Edited by linuxgurugamer
Link to comment
Share on other sites

2 hours ago, linuxgurugamer said:

A specific set of steps to duplicate the issue, beginning with starting the game

A log file (Player.log) which is from a run when it actually happened.

Steps to reproduce:

  1. Launch game
  2. Create and start a new career with default settings, renamed to "test"
  3. Close the tutorial window
  4. Open Toolbar Controller
  5. Attempt to hide any toolbar buttons (does not work)
  6. Attempt to unhide already-hidden toolbar buttons (toolbars reappear, cannot be re-hidden)

Here's my player.log from doing the above plus opening the Tracking Station to see if that did anything new: https://www.dropbox.com/s/ogxia6x1u05znwi/TCbug_Player.log?dl=0

Link to comment
Share on other sites

  • 2 months later...
10 hours ago, KrazyKerbinaut said:

Will there be any more work to make this mod work with the latest version? There are so many other mods that have Toolbar and Toolbar Controller as a dependency :(

As far as I'm aware (I'm running 1.12.3), there are/should be no problems running TC with 1.12.5.  Are you experiencing an issue?  Have you tried using it in a test copy of KSP, i.e. not your real game instance and save?

Link to comment
Share on other sites

  • 4 weeks later...

Hello. Tell me the mod, or how to do it yourself. I play in 4k, the standard scaling of 200% is not enough. Through the config I increased it to 280%, but there is a bug: the panel with money, reputation and science completely disappears. I need to make the button on the control panel showing reputation, money, science points displayed on all screens (by default it is only on the launch pad and in space). Can you tell me how to make a simple mod with such a button for the Toolbar Continued or ToolbarController.

Link to comment
Share on other sites

  • 3 months later...
  • 1 year later...

Are there examples of one mod registering multiple buttons?  I tried to do this with TUFX but something's not quite right.

Edit: Oooh I think I get it; the "which toolbar" configuration is per namespace not per button?  It would have been cool to use this to turn off the debug button but since it's only available in debug configs only that's not a big deal.

https://imgur.com/a/pEqv4VD

                const string toolbarNamespace = "TUFX_NS";
                const string toolbarMainName = "TUFX";
                const string toolbarDebugName = "TUFX-Debug";

                ToolbarControl.RegisterMod(toolbarNamespace, toolbarMainName);
                ToolbarControl.RegisterMod(toolbarNamespace, toolbarDebugName);

                var mainToolbarControl = gameObject.AddComponent<ToolbarControl>();
				mainToolbarControl.AddToAllToolbars(
                    configGuiEnable,
                    configGuiDisable,
                    ApplicationLauncher.AppScenes.ALWAYS,
                    toolbarNamespace,
                    toolbarMainName,
                    "TUFX/Assets/TUFX-Icon1",
                    "TUFX/Assets/TUFX-Icon1",
                    toolbarMainName);

#if DEBUG
                var debugToolbacControl = gameObject.AddComponent<ToolbarControl>();
                debugToolbacControl.AddToAllToolbars(
                    debugGuiEnable,
                    debugGuiDisable,
                    ApplicationLauncher.AppScenes.ALWAYS,
                    toolbarNamespace,
                    toolbarDebugName,
                    "TUFX/Assets/TUFX-Icon2",
                    "TUFX/Assets/TUFX-Icon2",
                    toolbarDebugName);
#endif
			}

 

Edited by JonnyOThan
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...