Skip to content

Commit

Permalink
#5632: Add the uniform scale toggle button
Browse files Browse the repository at this point in the history
  • Loading branch information
codereader committed Jun 11, 2021
1 parent e030841 commit 0a2cdfc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions install/user.xml
Expand Up @@ -293,6 +293,7 @@
<toolbutton name="flush" action="RefreshShaders" tooltip="Reload Materials" icon="texwindow_flushandreload.png"/>
<toggletoolbutton name="showinuse" action="TextureBrowserHideUnused" tooltip="Hide Unused" icon="texwindow_hideunused.png"/>
<toggletoolbutton name="showfavourites" action="TextureBrowserShowFavouritesOnly" tooltip="Show Favourites only" icon="favourite.png"/>
<toggletoolbutton name="useuniformscale" action="TextureBrowserToggleUniformScale" tooltip="Use Uniform Thumbnail Scale" icon="texwindow_uniformsize.png"/>
<separator/>
<toolbutton name="findandreplace" action="FindReplaceTextures" tooltip="Find &amp; Replace" icon="texwindow_findandreplace.png"/>
</toolbar>
Expand Down
1 change: 1 addition & 0 deletions radiant/ui/texturebrowser/TextureBrowserManager.cpp
Expand Up @@ -109,6 +109,7 @@ void TextureBrowserManager::initialiseModule(const IApplicationContext& ctx)
{
rMessage() << getName() << "::initialiseModule called." << std::endl;

GlobalEventManager().addRegistryToggle("TextureBrowserToggleUniformScale", RKEY_TEXTURE_USE_UNIFORM_SCALE);
GlobalEventManager().addRegistryToggle("TextureBrowserHideUnused", RKEY_TEXTURES_HIDE_UNUSED);
GlobalEventManager().addRegistryToggle("TextureBrowserShowFavouritesOnly", RKEY_TEXTURES_SHOW_FAVOURITES_ONLY);
GlobalCommandSystem().addCommand("ViewTextures", TextureBrowserManager::toggleGroupDialogTexturesTab);
Expand Down

0 comments on commit 0a2cdfc

Please sign in to comment.