Now every variant type has its icon.
This commit is contained in:
parent
1ef123c57d
commit
c8c280a68a
|
@ -49,6 +49,9 @@ def make_editor_icons_action(target, source, env):
|
|||
fname = str(f)
|
||||
|
||||
icon_name = os.path.basename(fname)[5:-4].title().replace("_", "")
|
||||
# some special cases
|
||||
if icon_name in ['Int', 'Bool', 'Float']:
|
||||
icon_name = icon_name.lower()
|
||||
if icon_name.endswith("MediumThumb"): # dont know a better way to handle this
|
||||
thumb_medium_indices.append(str(index))
|
||||
if icon_name.endswith("BigThumb"): # dont know a better way to handle this
|
||||
|
|
Before Width: | Height: | Size: 796 B After Width: | Height: | Size: 796 B |
|
@ -0,0 +1,3 @@
|
|||
<svg width="16" height="12" version="1.1" viewBox="0 0 16 12" xmlns="http://www.w3.org/2000/svg">
|
||||
<path d="m8 2v2h2v-2zm4 0v5c0 1.6569 1.3431 3 3 3h1v-2h-1c-0.55228-9.6e-6 -0.99999-0.44772-1-1v-5zm-11 2v6h2v-4h1c0.55228 9.6e-6 0.99999 0.44772 1 1v3h2v-3c0-1.6569-1.3431-3-3-3zm7 2v4h2v-4z" fill="#e0e0e0"/>
|
||||
</svg>
|
After Width: | Height: | Size: 314 B |
|
@ -481,9 +481,9 @@ void VisualScriptEditor::_update_graph(int p_only_id) {
|
|||
|
||||
Ref<Texture> type_icons[Variant::VARIANT_MAX] = {
|
||||
Control::get_icon("Variant", "EditorIcons"),
|
||||
Control::get_icon("Bool", "EditorIcons"),
|
||||
Control::get_icon("Int", "EditorIcons"),
|
||||
Control::get_icon("Float", "EditorIcons"),
|
||||
Control::get_icon("bool", "EditorIcons"),
|
||||
Control::get_icon("int", "EditorIcons"),
|
||||
Control::get_icon("float", "EditorIcons"),
|
||||
Control::get_icon("String", "EditorIcons"),
|
||||
Control::get_icon("Vector2", "EditorIcons"),
|
||||
Control::get_icon("Rect2", "EditorIcons"),
|
||||
|
@ -491,7 +491,7 @@ void VisualScriptEditor::_update_graph(int p_only_id) {
|
|||
Control::get_icon("Transform2D", "EditorIcons"),
|
||||
Control::get_icon("Plane", "EditorIcons"),
|
||||
Control::get_icon("Quat", "EditorIcons"),
|
||||
Control::get_icon("Aabb", "EditorIcons"),
|
||||
Control::get_icon("AABB", "EditorIcons"),
|
||||
Control::get_icon("Basis", "EditorIcons"),
|
||||
Control::get_icon("Transform", "EditorIcons"),
|
||||
Control::get_icon("Color", "EditorIcons"),
|
||||
|
@ -775,9 +775,9 @@ void VisualScriptEditor::_update_members() {
|
|||
|
||||
Ref<Texture> type_icons[Variant::VARIANT_MAX] = {
|
||||
Control::get_icon("Variant", "EditorIcons"),
|
||||
Control::get_icon("Bool", "EditorIcons"),
|
||||
Control::get_icon("Int", "EditorIcons"),
|
||||
Control::get_icon("Float", "EditorIcons"),
|
||||
Control::get_icon("bool", "EditorIcons"),
|
||||
Control::get_icon("int", "EditorIcons"),
|
||||
Control::get_icon("float", "EditorIcons"),
|
||||
Control::get_icon("String", "EditorIcons"),
|
||||
Control::get_icon("Vector2", "EditorIcons"),
|
||||
Control::get_icon("Rect2", "EditorIcons"),
|
||||
|
@ -785,7 +785,7 @@ void VisualScriptEditor::_update_members() {
|
|||
Control::get_icon("Transform2D", "EditorIcons"),
|
||||
Control::get_icon("Plane", "EditorIcons"),
|
||||
Control::get_icon("Quat", "EditorIcons"),
|
||||
Control::get_icon("Aabb", "EditorIcons"),
|
||||
Control::get_icon("AABB", "EditorIcons"),
|
||||
Control::get_icon("Basis", "EditorIcons"),
|
||||
Control::get_icon("Transform", "EditorIcons"),
|
||||
Control::get_icon("Color", "EditorIcons"),
|
||||
|
|
Loading…
Reference in New Issue