brybalicious / toggle_mmb_numpad

Blender Addon which provides hotkeys for toggling 'Emulate 3 Button Mouse' & 'Emulate Numpad'
GNU General Public License v3.0
11 stars 1 forks source link

Toggle GUI Buttons #6

Open ericwomer opened 11 months ago

ericwomer commented 11 months ago

I modified the code to add buttons to the 3D Viewport header that you can toggle by clicking or using the short cuts, but placed the png and source svg files for the icons into the lfs storage and now github won't let me upload it without paying so I put it up on my bitbucket account.

git checkout git@bitbucket.org:ewomer/toggle_mmb_numpad.git -b toggle-gui

or

git remote add ewomer git@bitbucket.org:ewomer/toggle_mmb_numpad.git
git fetch ewomer
git checkout ewomer/toggle-gui

The custom icons I created look like trash so you may want to have someone replace them, the numpad.png you can't tell what it is but the mouse_mmb.png looks ok.

Using the ' and " keys still prints to the Info panel but I'm working on something for people to toggle that on and off. Clicking on the buttons do not print an info message.

brybalicious commented 11 months ago

Oh interesting. Does github not support git-lfs? I usually used gitlab and Azure Devops for git-lfs projects, but I guess you must have hit a limit. You should be able to commit files up to a limit of 2GB on Github Free tier:

https://docs.github.com/en/repositories/working-with-files/managing-large-files/about-git-large-file-storage

Anyhow, I will check it out. Thanks for your upgrades!

ericwomer commented 11 months ago

Not if you don't pay for it, https://docs.github.com/en/repositories/working-with-files/managing-large-files/about-storage-and-bandwidth-usage

ericwomer commented 11 months ago

Updated toggle gui on bitbucket to what I think is a better iteration

    bl_info:
      * wiki_url has been depricated in favor of doc_url
    ToggleAddonPreferences:
      * Added preferences class
      *     notify_user (boolean): To allow users to toggle on and off the
            text notification state
    IconState:
      * Store what state the toggle menu icons are in
    header_buttons_draw:
      * Switched from props to operator since the intentions is to call an
        operator and not manipulate data
      * Remove last row().separator() so any following addons that add menu
        items don't end up causing a double space issue