mirror of
https://github.com/enduro2d/enduro2d.git
synced 2025-12-14 16:09:06 +07:00
add component inspector icons
This commit is contained in:
@@ -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() ) {
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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();
|
||||
|
||||
@@ -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(
|
||||
|
||||
@@ -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();
|
||||
|
||||
@@ -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();
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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();
|
||||
|
||||
@@ -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();
|
||||
|
||||
@@ -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();
|
||||
|
||||
@@ -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();
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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());
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user