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§
Sourcefn set_brightness(self, color: impl Into<Color>)
fn set_brightness(self, color: impl Into<Color>)
SetBrightness(crate::unity_engine::color::Color) overload
Sourcefn set_pallete_sprite(self, pallete: impl Into<Sprite>)
fn set_pallete_sprite(self, pallete: impl Into<Sprite>)
SetPalleteSprite(crate::unity_engine::sprite::Sprite) overload
Sourcefn set_icon_no_engaging(self, unit: impl Into<Unit>)
fn set_icon_no_engaging(self, unit: impl Into<Unit>)
SetIconNoEngaging(crate::app::unit::Unit) overload
Sourcefn 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_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
Sourcefn 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_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
Sourcefn set_icon_4(
self,
person: impl Into<PersonData>,
god: impl Into<GodData>,
is_female: impl Into<bool>,
)
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
Sourcefn set_icon_5(self, god: impl Into<GodData>, is_darkness: impl Into<bool>)
fn set_icon_5(self, god: impl Into<GodData>, is_darkness: impl Into<bool>)
SetIcon(crate::app::goddata::GodData, bool) overload
Sourcefn set_icon_6(
self,
god: impl Into<GodData>,
is_female: impl Into<bool>,
is_darkness: impl Into<bool>,
)
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
Sourcefn try_set(
self,
index_name: impl Into<Il2CppString>,
pallete_name: impl Into<Il2CppString>,
) -> bool
fn try_set( self, index_name: impl Into<Il2CppString>, pallete_name: impl Into<Il2CppString>, ) -> bool
TrySet(::unity::Il2CppString, ::unity::Il2CppString) overload
Sourcefn reset_icon(self)
fn reset_icon(self)
ResetIcon() overload
Sourcefn get_weapon_kind_id(
self,
item_kind: impl Into<ItemData_Kinds>,
) -> Il2CppString
fn get_weapon_kind_id( self, item_kind: impl Into<ItemData_Kinds>, ) -> Il2CppString
GetWeaponKindId(crate::app::itemdata::ItemData_Kinds) overload
Sourcefn get_index_sprite(self, name: impl Into<Il2CppString>) -> Sprite
fn get_index_sprite(self, name: impl Into<Il2CppString>) -> Sprite
GetIndexSprite(::unity::Il2CppString) overload
Sourcefn get_pallete_sprite(self, name: impl Into<Il2CppString>) -> Sprite
fn get_pallete_sprite(self, name: impl Into<Il2CppString>) -> Sprite
GetPalleteSprite(::unity::Il2CppString) overload
Sourcefn get_material(self) -> Material
fn get_material(self) -> Material
get_material() overload
Sourcefn set_material(self, value: impl Into<Material>)
fn set_material(self, value: impl Into<Material>)
set_material(crate::unity_engine::material::Material) overload
Sourcefn on_destroy(self)
fn on_destroy(self)
OnDestroy() overload
Sourcefn on_populate_mesh(self, vh: impl Into<VertexHelper>)
fn on_populate_mesh(self, vh: impl Into<VertexHelper>)
OnPopulateMesh(crate::unity_engine::ui::vertexhelper::VertexHelper) overload
Sourcefn update_material(self)
fn update_material(self)
UpdateMaterial() overload
Sourcefn update_icon(self)
fn update_icon(self)
UpdateIcon() overload
Sourcefn set_random_icon(self)
fn set_random_icon(self)
SetRandomIcon() 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§
impl<__T: IUnitIcon> IUnitIconMethods for __T
app-uniticon only.