mirror of
https://github.com/tiennm99/godot.git
synced 2026-08-05 18:24:32 +00:00
-ability to set default textures in shader (needed for visual shader editing)
-work in progress new graph system (will replace current one) -crash fix in s3m loader (out of bounds acess) -fixed vbox overriding of separation (fixes empty line between section tabs)
This commit is contained in:
@@ -65,7 +65,7 @@ static Ref<Texture> make_icon(T p_src) {
|
||||
|
||||
|
||||
Ref<ImageTexture> texture( memnew( ImageTexture ) );
|
||||
texture->create_from_image( Image(p_src) );
|
||||
texture->create_from_image( Image(p_src),ImageTexture::FLAG_FILTER );
|
||||
|
||||
return texture;
|
||||
}
|
||||
@@ -416,7 +416,15 @@ void make_default_theme() {
|
||||
t->set_color("font_color_hover","PopupMenu", control_font_color );
|
||||
t->set_constant("hseparation","PopupMenu",2);
|
||||
t->set_constant("vseparation","PopupMenu",1);
|
||||
|
||||
|
||||
Ref<StyleBoxTexture> graphsb = make_stylebox(graph_node_png,6,21,6,5,16,21,16,5);
|
||||
//graphsb->set_expand_margin_size(MARGIN_LEFT,10);
|
||||
//graphsb->set_expand_margin_size(MARGIN_RIGHT,10);
|
||||
t->set_stylebox("frame","GraphNode", graphsb );
|
||||
t->set_constant("separation","GraphNode", 1 );
|
||||
t->set_icon("port","GraphNode", make_icon( graph_port_png ) );
|
||||
|
||||
|
||||
t->set_stylebox("bg","Tree", make_stylebox( tree_bg_png,4,4,4,5,3,3,3,3) );
|
||||
t->set_stylebox("bg_focus","Tree", focus );
|
||||
Ref<StyleBoxTexture> tree_selected = make_stylebox( selection_png,4,4,4,4);
|
||||
|
||||
Reference in New Issue
Block a user