]> de.git.xonotic.org Git - xonotic/netradiant.git/commitdiff
Merge commit '6a7a6b309311c16138981200f4539770755c243a' into master-merge
authorThomas Debesse <dev@illwieckz.net>
Tue, 21 Jun 2022 03:59:45 +0000 (05:59 +0200)
committerThomas Debesse <dev@illwieckz.net>
Tue, 21 Jun 2022 03:59:45 +0000 (05:59 +0200)
1  2 
libs/gtkutil/xorrectangle.cpp
radiant/brush.h
radiant/brushmanip.cpp
radiant/camwindow.cpp
radiant/texwindow.cpp
radiant/xywindow.cpp

Simple merge
diff --cc radiant/brush.h
Simple merge
Simple merge
Simple merge
index 7670d20c61b08543aa4a4388c70aeb09bf854808,23174f1c544c8c5a39cc78444b133d9a144ece41..4068f27b551b7ebab1314e0361edb0d021ad5d3b
@@@ -582,6 -581,11 +584,11 @@@ bool Texture_IsShown( IShader* shader, 
                return false;
        }
  
 -              && shader_equal_prefix( shader_get_textureName( shader->getName() ), TextureBrowser_getComonShadersDir() ) ){
+       if( hideNonShadersInCommon && shader->IsDefault() && !shader->IsInUse() //&& g_TextureBrowser_currentDirectory != ""
++              && shader_equal_prefix( shader_get_textureName( shader->getName() ), TextureBrowser_getCommonShadersDir() ) ){
+               return false;
+       }
        if ( GlobalTextureBrowser().m_searchedTags ) {
                if ( !TextureSearch_IsShown( shader->getName() ) ) {
                        return false;
@@@ -3005,9 -2813,17 +3006,17 @@@ void TextureBrowser_constructPreference
        page.appendSpinner( "Thumbnails Min Size", GlobalTextureBrowser().m_uniformTextureMinSize, GlobalTextureBrowser().m_uniformTextureMinSize, 16, 8192 );
        page.appendEntry( "Mousewheel Increment", GlobalTextureBrowser().m_mouseWheelScrollIncrement );
        {
 -              const char* startup_shaders[] = { "None", TextureBrowser_getComonShadersName() };
 +              const char* startup_shaders[] = { "None", TextureBrowser_getCommonShadersName() };
                page.appendCombo( "Load Shaders at Startup", reinterpret_cast<int&>( GlobalTextureBrowser().m_startupShaders ), STRING_ARRAY_RANGE( startup_shaders ) );
        }
 -              sstream << "Hide nonShaders in " << TextureBrowser_getComonShadersDir() << " folder";
+       {
+               StringOutputStream sstream( 256 );
++              sstream << "Hide nonShaders in " << TextureBrowser_getCommonShadersDir() << " folder";
+               page.appendCheckBox(
+                       "", sstream.c_str(),
+                       GlobalTextureBrowser().m_hideNonShadersInCommon
+                       );
+       }
  }
  
  void TextureBrowser_constructPage( PreferenceGroup& group ){
@@@ -3059,13 -2873,14 +3068,14 @@@ void TextureBrowser_Construct()
        GlobalPreferenceSystem().registerPreference( "FixedSize", make_property_string( g_TextureBrowser_fixedSize ) );
        GlobalPreferenceSystem().registerPreference( "FilterMissing", make_property_string( g_TextureBrowser_filterMissing ) );
        GlobalPreferenceSystem().registerPreference( "EnableAlpha", make_property_string( g_TextureBrowser_enableAlpha ) );
 -      GlobalPreferenceSystem().registerPreference( "LoadShaders", make_property_string( reinterpret_cast<int&>( GlobalTextureBrowser().m_startupShaders ) ) );
 -      GlobalPreferenceSystem().registerPreference( "WheelMouseInc", make_property_string( GlobalTextureBrowser().m_mouseWheelScrollIncrement ) );
 -      GlobalPreferenceSystem().registerPreference( "SI_Colors0", make_property_string( GlobalTextureBrowser().color_textureback ) );
 +      GlobalPreferenceSystem().registerPreference( "LoadShaders", make_property_string( reinterpret_cast<int&>( textureBrowser.m_startupShaders ) ) );
 +      GlobalPreferenceSystem().registerPreference( "WheelMouseInc", make_property_string( textureBrowser.m_mouseWheelScrollIncrement ) );
 +      GlobalPreferenceSystem().registerPreference( "SI_Colors0", make_property_string( textureBrowser.color_textureback ) );
+       GlobalPreferenceSystem().registerPreference( "HideNonShadersInCommon", make_property_string( GlobalTextureBrowser().m_hideNonShadersInCommon ) );
  
 -      g_TextureBrowser.shader = texdef_name_default();
 +      textureBrowser.shader = texdef_name_default();
  
 -      Textures_setModeChangedNotify( ReferenceCaller<TextureBrowser, void(), TextureBrowser_queueDraw>( g_TextureBrowser ) );
 +      Textures_setModeChangedNotify( ReferenceCaller<TextureBrowser, void(), TextureBrowser_queueDraw>( textureBrowser ) );
  
        TextureBrowser_registerPreferencesPage();
  
Simple merge