add component inspector icons

This commit is contained in:
2020-02-02 04:03:27 +07:00
parent 25f1182804
commit bbc52def82
14 changed files with 16 additions and 16 deletions

View File

@@ -68,7 +68,7 @@ namespace e2d
namespace e2d
{
const char* component_inspector<actor>::title = "actor";
const char* component_inspector<actor>::title = ICON_FA_CUBE " actor";
void component_inspector<actor>::operator()(gcomponent<actor>& c) const {
if ( node_iptr n = c->node() ) {

View File

@@ -55,7 +55,7 @@ namespace e2d
namespace e2d
{
const char* component_inspector<behaviour>::title = "behaviour";
const char* component_inspector<behaviour>::title = ICON_FA_SCROLL " behaviour";
void component_inspector<behaviour>::operator()(gcomponent<behaviour>& c) const {
E2D_UNUSED(c);

View File

@@ -182,7 +182,7 @@ namespace e2d
namespace e2d
{
const char* component_inspector<camera>::title = "camera";
const char* component_inspector<camera>::title = ICON_FA_VIDEO " camera";
void component_inspector<camera>::operator()(gcomponent<camera>& c) const {
if ( bool input = c.owner().component<camera::input>().exists();

View File

@@ -229,7 +229,7 @@ namespace e2d
namespace e2d
{
const char* component_inspector<rect_collider>::title = "rect_collider";
const char* component_inspector<rect_collider>::title = ICON_FA_DICE_FOUR " rect_collider";
void component_inspector<rect_collider>::operator()(gcomponent<rect_collider>& c) const {
if ( v2f size = c->size();
@@ -254,7 +254,7 @@ namespace e2d
namespace e2d
{
const char* component_inspector<circle_collider>::title = "circle_collider";
const char* component_inspector<circle_collider>::title = ICON_FA_DICE_ONE " circle_collider";
void component_inspector<circle_collider>::operator()(gcomponent<circle_collider>& c) const {
if ( f32 radius = c->radius();
@@ -285,7 +285,7 @@ namespace e2d
namespace e2d
{
const char* component_inspector<polygon_collider>::title = "polygon_collider";
const char* component_inspector<polygon_collider>::title = ICON_FA_DICE_SIX " polygon_collider";
void component_inspector<polygon_collider>::operator()(gcomponent<polygon_collider>& c) const {
const str points_label = strings::rformat(

View File

@@ -113,7 +113,7 @@ namespace e2d
namespace e2d
{
const char* component_inspector<flipbook_player>::title = "flipbook_player";
const char* component_inspector<flipbook_player>::title = ICON_FA_IMAGES " flipbook_player";
void component_inspector<flipbook_player>::operator()(gcomponent<flipbook_player>& c) const {
if ( f32 time = c->time();

View File

@@ -198,7 +198,7 @@ namespace e2d
namespace e2d
{
const char* component_inspector<label>::title = "label";
const char* component_inspector<label>::title = ICON_FA_PARAGRAPH " label";
void component_inspector<label>::operator()(gcomponent<label>& c) const {
if ( str text = c->text();

View File

@@ -53,7 +53,7 @@ namespace e2d
namespace e2d
{
const char* component_inspector<model_renderer>::title = "model_renderer";
const char* component_inspector<model_renderer>::title = ICON_FA_DRAW_POLYGON " model_renderer";
void component_inspector<model_renderer>::operator()(gcomponent<model_renderer>& c) const {
E2D_UNUSED(c);

View File

@@ -44,7 +44,7 @@ namespace e2d
namespace e2d
{
const char* component_inspector<named>::title = "named";
const char* component_inspector<named>::title = ICON_FA_SIGNATURE " named";
void component_inspector<named>::operator()(gcomponent<named>& c) const {
if ( str name = c->name();

View File

@@ -81,7 +81,7 @@ namespace e2d
namespace e2d
{
const char* component_inspector<renderer>::title = "renderer";
const char* component_inspector<renderer>::title = ICON_FA_FILL " renderer";
void component_inspector<renderer>::operator()(gcomponent<renderer>& c) const {
if ( v3f translation = c->translation();

View File

@@ -108,7 +108,7 @@ namespace e2d
namespace e2d
{
const char* component_inspector<rigid_body>::title = "rigid_body";
const char* component_inspector<rigid_body>::title = ICON_FA_WEIGHT_HANGING " rigid_body";
void component_inspector<rigid_body>::operator()(gcomponent<rigid_body>& c) const {
if ( rigid_body::types type = c->type();

View File

@@ -44,7 +44,7 @@ namespace e2d
namespace e2d
{
const char* component_inspector<scene>::title = "scene";
const char* component_inspector<scene>::title = ICON_FA_CUBES " scene";
void component_inspector<scene>::operator()(gcomponent<scene>& c) const {
if ( i32 depth = c->depth();

View File

@@ -912,7 +912,7 @@ namespace e2d
namespace e2d
{
const char* component_inspector<spine_player>::title = "spine_player";
const char* component_inspector<spine_player>::title = ICON_FA_PARAGRAPH " spine_player";
void component_inspector<spine_player>::operator()(gcomponent<spine_player>& c) const {
E2D_UNUSED(c);

View File

@@ -172,7 +172,7 @@ namespace e2d
namespace e2d
{
const char* component_inspector<sprite_renderer>::title = "sprite_renderer";
const char* component_inspector<sprite_renderer>::title = ICON_FA_IMAGE " sprite_renderer";
void component_inspector<sprite_renderer>::operator()(gcomponent<sprite_renderer>& c) const {
if ( color tint = color(c->tint());

View File

@@ -87,7 +87,7 @@ namespace e2d
namespace e2d
{
const char* component_inspector<touchable>::title = "touchable";
const char* component_inspector<touchable>::title = ICON_FA_FINGERPRINT " touchable";
void component_inspector<touchable>::operator()(gcomponent<touchable>& c) const {
if ( bool touched = c.owner().component<touchable::touched>().exists();