Skip to main content

IUnitIconMethods

Trait IUnitIconMethods 

Source
pub trait IUnitIconMethods: IUnitIcon {
Show 24 methods // Provided methods fn set_brightness(self, color: impl Into<Color>) { ... } fn set_pallete_sprite(self, pallete: impl Into<Sprite>) { ... } fn set_icon(self, unit: impl Into<Unit>) { ... } fn set_icon_no_engaging(self, unit: impl Into<Unit>) { ... } fn set_icon_2( self, person: impl Into<PersonData>, job: impl Into<JobData>, is_female: impl Into<bool>, equip_item: impl Into<UnitItem>, ) { ... } fn set_icon_3( self, person: impl Into<PersonData>, job: impl Into<JobData>, is_female: impl Into<bool>, item_kind: impl Into<ItemData_Kinds>, ) { ... } fn set_icon_4( self, person: impl Into<PersonData>, god: impl Into<GodData>, is_female: impl Into<bool>, ) { ... } fn set_icon_5(self, god: impl Into<GodData>, is_darkness: impl Into<bool>) { ... } fn set_icon_6( self, god: impl Into<GodData>, is_female: impl Into<bool>, is_darkness: impl Into<bool>, ) { ... } fn try_set( self, index_name: impl Into<Il2CppString>, pallete_name: impl Into<Il2CppString>, ) -> bool { ... } fn reset_icon(self) { ... } fn get_weapon_kind_id( self, item_kind: impl Into<ItemData_Kinds>, ) -> Il2CppString { ... } fn get_index_sprite(self, name: impl Into<Il2CppString>) -> Sprite { ... } fn get_pallete_sprite(self, name: impl Into<Il2CppString>) -> Sprite { ... } fn get_material(self) -> Material { ... } fn set_material(self, value: impl Into<Material>) { ... } fn awake(self) { ... } fn on_destroy(self) { ... } fn start(self) { ... } fn on_populate_mesh(self, vh: impl Into<VertexHelper>) { ... } fn update_material(self) { ... } fn update_icon(self) { ... } fn set_random_icon(self) { ... } fn ctor(self) { ... }
}

Provided Methods§

Source

fn set_brightness(self, color: impl Into<Color>)

SetBrightness(crate::unity_engine::color::Color) overload

Source

fn set_pallete_sprite(self, pallete: impl Into<Sprite>)

SetPalleteSprite(crate::unity_engine::sprite::Sprite) overload

Source

fn set_icon(self, unit: impl Into<Unit>)

SetIcon(crate::app::unit::Unit) overload

Source

fn set_icon_no_engaging(self, unit: impl Into<Unit>)

SetIconNoEngaging(crate::app::unit::Unit) overload

Source

fn set_icon_2( self, person: impl Into<PersonData>, job: impl Into<JobData>, is_female: impl Into<bool>, equip_item: impl Into<UnitItem>, )

SetIcon(crate::app::persondata::PersonData, crate::app::jobdata::JobData, bool, crate::app::unititem::UnitItem) overload

Source

fn set_icon_3( self, person: impl Into<PersonData>, job: impl Into<JobData>, is_female: impl Into<bool>, item_kind: impl Into<ItemData_Kinds>, )

SetIcon(crate::app::persondata::PersonData, crate::app::jobdata::JobData, bool, crate::app::itemdata::ItemData_Kinds) overload

Source

fn set_icon_4( self, person: impl Into<PersonData>, god: impl Into<GodData>, is_female: impl Into<bool>, )

SetIcon(crate::app::persondata::PersonData, crate::app::goddata::GodData, bool) overload

Source

fn set_icon_5(self, god: impl Into<GodData>, is_darkness: impl Into<bool>)

SetIcon(crate::app::goddata::GodData, bool) overload

Source

fn set_icon_6( self, god: impl Into<GodData>, is_female: impl Into<bool>, is_darkness: impl Into<bool>, )

SetIcon(crate::app::goddata::GodData, bool, bool) overload

Source

fn try_set( self, index_name: impl Into<Il2CppString>, pallete_name: impl Into<Il2CppString>, ) -> bool

TrySet(::unity::Il2CppString, ::unity::Il2CppString) overload

Source

fn reset_icon(self)

ResetIcon() overload

Source

fn get_weapon_kind_id( self, item_kind: impl Into<ItemData_Kinds>, ) -> Il2CppString

GetWeaponKindId(crate::app::itemdata::ItemData_Kinds) overload

Source

fn get_index_sprite(self, name: impl Into<Il2CppString>) -> Sprite

GetIndexSprite(::unity::Il2CppString) overload

Source

fn get_pallete_sprite(self, name: impl Into<Il2CppString>) -> Sprite

GetPalleteSprite(::unity::Il2CppString) overload

Source

fn get_material(self) -> Material

get_material() overload

Source

fn set_material(self, value: impl Into<Material>)

set_material(crate::unity_engine::material::Material) overload

Source

fn awake(self)

Awake() overload

Source

fn on_destroy(self)

OnDestroy() overload

Source

fn start(self)

Start() overload

Source

fn on_populate_mesh(self, vh: impl Into<VertexHelper>)

OnPopulateMesh(crate::unity_engine::ui::vertexhelper::VertexHelper) overload

Source

fn update_material(self)

UpdateMaterial() overload

Source

fn update_icon(self)

UpdateIcon() overload

Source

fn set_random_icon(self)

SetRandomIcon() overload

Source

fn ctor(self)

.ctor() overload

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<__T: IUnitIcon> IUnitIconMethods for __T

Available on crate feature app-uniticon only.