Giter Site home page Giter Site logo

ksp_toolbar's Introduction

KSP Toolbar Plugin

This is a plugin for Kerbal Space Program that adds a common API for a buttons toolbar. Third-party plugin authors may use the API to add their buttons to the toolbar.

For more information, please visit the Forums Feedback Thread.

ksp_toolbar's People

Contributors

blizzy78 avatar majiir avatar squelch avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

ksp_toolbar's Issues

Toolbar buttons not showing up on main menu

When adding a toolbar button to the main menu it doesn't show up. Take a look at my code - if I don't destroy the buttons there, they show up fine in the other scenes (space center etc) but never on the main menu. IButton.EffectivelyVisible even returns true, but I see nothing.

This is with KSP 0.23.5 linux version, 64bit executable, no other mods apart from toolbar and my mod. Apologies in advance if it turns out I'm just doing something wrong.

Button reordering doesn't recognize when number of rows changes

When reordering buttons, if you have 2 rows of buttons and drop enough of them into a folder to decrease to one row, it no longer recognizes the buttons on the remaining row. Need to lock buttons and unlock to be able to move again.

1.7.9 under KSP 1.0.2 on MacOS X 10.10.3. Installed via CKAN.

Settings for a single toolbar may get duplicated

http://forum.kerbalspaceprogram.com/threads/60863-0-23-0-Toolbar-1-7-0-Common-API-for-draggable-resizable-buttons-toolbar?p=1013734&viewfull=1#post1013734

toolbar
{
    x = 300
    y = 300
    width = 500
    height = 38
    autoHide = False
    drawBorder = False
    useKSPSkin = False
    buttonOrder = 
    visibleButtons = KerbalAlarmClock.btnToolbarIcon,ResourceManifest.ResourceManifest
    x = 300
    y = 300
    width = 500
    height = 38
    autoHide = False
    drawBorder = False
    useKSPSkin = False
    buttonOrder = 
    visibleButtons = KerbalAlarmClock.btnToolbarIcon,ResourceManifest.ResourceManifest
}

Add support for bigger icon textures on buttons

Pixel-based icon size can be a problem for players with very high screen resolutions. Add support for third-party plugin authors being able to specify paths to bigger icon textures so that players can chose which to use.

Version file seems to need updating

Current toolbar works fine in 1.2.1, yet becuase of the version file, AVC is giving a harmless but annoying warning
"KSP_VERSION_MAX": {
"MAJOR": 1,
"MINOR": 2,
"PATCH": 0,
"BUILD": 0

From what I can tell on CKAN, the patch should be 9

"Toolbar Plugin Update Available" now shows up on all screens

Previously the Update Available sign only showed up in the menu screen, which was still annoying but could be safely ignored. Now it shows up on every single screen, including in-flight. I can only imagine this is a bug, as I can see no need to have it show up everywhere.

The "Update available" button only serves to clutter things and is entirely useless.

Yo dawg

I like the toolbar but i noticed you didn't have a comment/suggestion section. Can you add a option to modify the applauncher? Ideally a good applauncher interface is a single bordered button containing a icon of a mod. When leftclick activate asoociated mod, rightlick open/close XbyY dropdown of mod icons. In there, left click to open or right click to set mod icon to applauncher button.

Bonus points: mod-left to add mod's button to a list, mod-right to remove. hover scrollwheel on main button cycles through list

Add "missing icon" texture

Feature request: would you create a "missing icon" texture so that if it fails to load our icon it can have something instead of just not showing at all?

I am requesting this because of http://forum.kerbalspaceprogram.com/threads/25823-0-23-0-23-5-TAC-Fuel-Balancer-v2-3-22Dec?p=1069031&viewfull=1#post1069031, where one of the users of my mod installed my mod in the wrong location. The Toolbar showed the text "FB" in the Icon Visibility window, but the icon failed to show on the toolbar.

It would be nice if something still showed on the toolbar, and it might help indicate what went wrong.

Thanks!

Multiple "toolbar-plugin" loading-exclusion mechanic

I believe this plugin would benefit from an exclusion mechanic similar to what is present in ModuleManager, so to allow only one (the highest version found at loading time) instance to be loaded and be active.
Thought it requires little effort from users to check and delete any additional copies (beyond the only "legitimate" one within "GameData/000_Toolbar" folder), it can't be excluded any are still present due to incorrect mod placement/structure, while not every user is able to determine an incorrect toolbar behaviour because of multiple plugins running concurrently.

Button with menu/tooltip on mouseover and auto hide option does repaint exception.

I'm trying to make a button that's a normal button and also has a menu on mouseover, if the toolbar is configured to auto hide and you want to unhide him by passing the mouse over the button with menu you get a repaint excep and the toolbar keep mid-showing. I can repro that behavior with the test buttons also, the one that have the tooltip on mouseover does that, button10.
All seems work fine if the auto hide it's off.

Salud.

Save toolbar's width as it has been dragged

When resizing a toolbar, it rubberbands back to the nearest button. Then that width is saved as the maximum width, so that adding more buttons results in growing down.

Instead, change it so that the actual dragged width is saved rather than the rubberbanded-back width. This will result in growing to that width, and just then in down.

Advise user that install path is case sensitive

If it looks like a duck, waddles like a duck, and quacks like a duck, then it is invariably a duck.

Except when it's a Duck.

The plugin throws its own error dialog via installchecker when the path is found to be incorrect including the case. The formatting of the dialog, and due to how we read natural language, can lead to the case being overlooked.

000_toolbar != 000_Toolbar

A slight change to the formatting of the dialog text, and an addition that advises that the path is case sensitive, would alleviate any confusion as to why the error is being shown.

An interesting article on this subject regarding natural language vs coding language.
http://blog.codinghorror.com/the-case-for-case-insensitivity/

Add support for drop-down menus

Putting this on backburner for now since I figure that not many plugins will need this.

If you do have a good reason for a drop-down menu for your toolbar button, please speak up!

Please note that drop-down support will be text-based only, such as this:

bsxdhjt

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.