X-Git-Url: https://de.git.xonotic.org/?p=xonotic%2Fnetradiant.git;a=blobdiff_plain;f=plugins%2Fentity%2Fentity.cpp;fp=plugins%2Fentity%2Fentity.cpp;h=77ad814349c6f50a02b9f4e28466eba3b0e04b2b;hp=a251bde5c442be67c0438e89cf3ff56ef945932d;hb=e155ebe99481333af4a7660d174db490e2a75fb5;hpb=aa4bc3893f6c0c360c91896eba46631e53b2f0d1 diff --git a/plugins/entity/entity.cpp b/plugins/entity/entity.cpp index a251bde5..77ad8143 100644 --- a/plugins/entity/entity.cpp +++ b/plugins/entity/entity.cpp @@ -111,6 +111,7 @@ EntityCreator::KeyValueChangedFunc KeyValue::m_entityKeyValueChanged = 0; Counter* EntityKeyValues::m_counter = 0; bool g_showNames = true; +bool g_showTargetNames = false; bool g_showAngles = true; bool g_newLightDraw = true; bool g_lightRadii = true; @@ -264,6 +265,12 @@ void setShowNames( bool showNames ){ bool getShowNames(){ return g_showNames; } +void setShowTargetNames( bool showNames ){ + g_showTargetNames = showNames; +} +bool getShowTargetNames(){ + return g_showTargetNames; +} void setShowAngles( bool showAngles ){ g_showAngles = showAngles; } @@ -368,6 +375,7 @@ void Entity_Construct( EGameType gameType ){ } GlobalPreferenceSystem().registerPreference( "SI_ShowNames", make_property_string( g_showNames ) ); + GlobalPreferenceSystem().registerPreference( "SI_ShowTargetNames", make_property_string( g_showTargetNames ) ); GlobalPreferenceSystem().registerPreference( "SI_ShowAngles", make_property_string( g_showAngles ) ); GlobalPreferenceSystem().registerPreference( "NewLightStyle", make_property_string( g_newLightDraw ) ); GlobalPreferenceSystem().registerPreference( "LightRadiuses", make_property_string( g_lightRadii ) );