1#[cfg(feature = "app-refineshopexchangesourcemenucontent-types")]
4mod __types {
5 #[allow(unused_imports)] use ::unity::prelude::*;
6
7 use super::*;
8 use crate::{
9 app::basicmenucontent::{BasicMenuContent, IBasicMenuContent},
10 system::object::{IObject, Object},
11 unity_engine::{
12 behaviour::{Behaviour, IBehaviour},
13 component::{Component, IComponent},
14 monobehaviour::{IMonoBehaviour, MonoBehaviour},
15 object_2::{IObject_2, Object_2},
16 },
17 };
18
19 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/refineshopexchangesourcemenucontent/RefineShopExchangeSourceMenuContent.md"))]
20 #[::unity::class(namespace = "App", name = "RefineShopExchangeSourceMenuContent")]
21 #[parent(crate::app::basicmenucontent::BasicMenuContent)]
22 pub struct RefineShopExchangeSourceMenuContent {
23 #[offset(232)]
24 #[rename(name = "m_HelpText")]
25 pub m_help_text: crate::tm_pro::textmeshprougui::TextMeshProUGUI,
26 #[offset(240)]
27 #[rename(name = "m_MaterialSourceCaption")]
28 pub m_material_source_caption: crate::tm_pro::textmeshprougui::TextMeshProUGUI,
29 #[offset(248)]
30 #[rename(name = "m_MaterialSourceIconImage")]
31 pub m_material_source_icon_image: crate::unity_engine::ui::image::Image,
32 #[offset(256)]
33 #[rename(name = "m_MaterialSourceNameText")]
34 pub m_material_source_name_text: crate::tm_pro::textmeshprougui::TextMeshProUGUI,
35 #[offset(264)]
36 #[rename(name = "m_MaterialSourceValueText")]
37 pub m_material_source_value_text: crate::tm_pro::textmeshprougui::TextMeshProUGUI,
38 #[offset(272)]
39 #[rename(name = "m_MaterialTargetCaption")]
40 pub m_material_target_caption: crate::tm_pro::textmeshprougui::TextMeshProUGUI,
41 #[offset(280)]
42 #[rename(name = "m_MaterialTargetIconImage")]
43 pub m_material_target_icon_image: crate::unity_engine::ui::image::Image,
44 #[offset(288)]
45 #[rename(name = "m_MaterialTargetNameText")]
46 pub m_material_target_name_text: crate::tm_pro::textmeshprougui::TextMeshProUGUI,
47 #[offset(296)]
48 #[rename(name = "m_MaterialTargetValueText")]
49 pub m_material_target_value_text: crate::tm_pro::textmeshprougui::TextMeshProUGUI,
50 }
51}
52
53#[cfg(feature = "app-refineshopexchangesourcemenucontent-types")]
54pub use __types::*;
55
56#[cfg(feature = "app-refineshopexchangesourcemenucontent")]
57pub trait IRefineShopExchangeSourceMenuContentMethods: IRefineShopExchangeSourceMenuContent {
58 #[doc = "`Start()` overload"]
59 fn start(self) -> () {
60 unsafe {
61 let __receiver = <RefineShopExchangeSourceMenuContent as ::unity::FromIlInstance>::from_il_instance(
62 <Self as ::unity::SystemObject>::as_instance(self),
63 );
64 {
65 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
66 let __vi = *__vt.get(31usize).unwrap_or_else(|| {
67 panic!(
68 "unity: virtual slot {}
69 out of range (vtable len {}
70) on the runtime class behind {}
71 (method `{}
72`)",
73 31usize,
74 __vt.len(),
75 <RefineShopExchangeSourceMenuContent as ::unity::ClassIdentity>::NAME,
76 "Start",
77 )
78 });
79 let __inner: extern "C" fn(RefineShopExchangeSourceMenuContent, ::unity::OptionalMethod) -> () =
80 ::core::mem::transmute(__vi.method_ptr);
81 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
82 __inner(__receiver, __mi)
83 }
84 }
85 }
86 #[doc = "`BuildMenuItemContent()` overload"]
87 fn build_menu_item_content(self) -> () {
88 unsafe {
89 let __receiver = <RefineShopExchangeSourceMenuContent as ::unity::FromIlInstance>::from_il_instance(
90 <Self as ::unity::SystemObject>::as_instance(self),
91 );
92 {
93 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
94 let __vi = *__vt.get(18usize).unwrap_or_else(|| {
95 panic!(
96 "unity: virtual slot {}
97 out of range (vtable len {}
98) on the runtime class behind {}
99 (method `{}
100`)",
101 18usize,
102 __vt.len(),
103 <RefineShopExchangeSourceMenuContent as ::unity::ClassIdentity>::NAME,
104 "BuildMenuItemContent",
105 )
106 });
107 let __inner: extern "C" fn(RefineShopExchangeSourceMenuContent, ::unity::OptionalMethod) -> () =
108 ::core::mem::transmute(__vi.method_ptr);
109 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
110 __inner(__receiver, __mi)
111 }
112 }
113 }
114 #[doc = "`GetMenuItemContentMax()` overload"]
115 fn get_menu_item_content_max(self) -> i32 {
116 unsafe {
117 let __receiver = <RefineShopExchangeSourceMenuContent as ::unity::FromIlInstance>::from_il_instance(
118 <Self as ::unity::SystemObject>::as_instance(self),
119 );
120 {
121 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
122 let __vi = *__vt.get(4usize).unwrap_or_else(|| {
123 panic!(
124 "unity: virtual slot {}
125 out of range (vtable len {}
126) on the runtime class behind {}
127 (method `{}
128`)",
129 4usize,
130 __vt.len(),
131 <RefineShopExchangeSourceMenuContent as ::unity::ClassIdentity>::NAME,
132 "GetMenuItemContentMax",
133 )
134 });
135 let __inner: extern "C" fn(RefineShopExchangeSourceMenuContent, ::unity::OptionalMethod) -> i32 =
136 ::core::mem::transmute(__vi.method_ptr);
137 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
138 __inner(__receiver, __mi)
139 }
140 }
141 }
142 #[doc = "`CalcCursorMovedPosY(i32)` overload"]
143 fn calc_cursor_moved_pos_y(self, menu_item_index: impl ::core::convert::Into<i32>) -> f32 {
144 unsafe {
145 let __receiver = <RefineShopExchangeSourceMenuContent as ::unity::FromIlInstance>::from_il_instance(
146 <Self as ::unity::SystemObject>::as_instance(self),
147 );
148 {
149 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
150 let __vi = *__vt.get(10usize).unwrap_or_else(|| {
151 panic!(
152 "unity: virtual slot {}
153 out of range (vtable len {}
154) on the runtime class behind {}
155 (method `{}
156`)",
157 10usize,
158 __vt.len(),
159 <RefineShopExchangeSourceMenuContent as ::unity::ClassIdentity>::NAME,
160 "CalcCursorMovedPosY",
161 )
162 });
163 let __inner: extern "C" fn(RefineShopExchangeSourceMenuContent, i32, ::unity::OptionalMethod) -> f32 =
164 ::core::mem::transmute(__vi.method_ptr);
165 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
166 __inner(__receiver, ::core::convert::Into::into(menu_item_index), __mi)
167 }
168 }
169 }
170 #[doc = "`CalcW()` overload"]
171 fn calc_w(self) -> f32 {
172 unsafe {
173 let __receiver = <RefineShopExchangeSourceMenuContent as ::unity::FromIlInstance>::from_il_instance(
174 <Self as ::unity::SystemObject>::as_instance(self),
175 );
176 {
177 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
178 let __vi = *__vt.get(21usize).unwrap_or_else(|| {
179 panic!(
180 "unity: virtual slot {}
181 out of range (vtable len {}
182) on the runtime class behind {}
183 (method `{}
184`)",
185 21usize,
186 __vt.len(),
187 <RefineShopExchangeSourceMenuContent as ::unity::ClassIdentity>::NAME,
188 "CalcW",
189 )
190 });
191 let __inner: extern "C" fn(RefineShopExchangeSourceMenuContent, ::unity::OptionalMethod) -> f32 =
192 ::core::mem::transmute(__vi.method_ptr);
193 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
194 __inner(__receiver, __mi)
195 }
196 }
197 }
198 #[doc = "`CalcH()` overload"]
199 fn calc_h(self) -> f32 {
200 unsafe {
201 let __receiver = <RefineShopExchangeSourceMenuContent as ::unity::FromIlInstance>::from_il_instance(
202 <Self as ::unity::SystemObject>::as_instance(self),
203 );
204 {
205 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
206 let __vi = *__vt.get(22usize).unwrap_or_else(|| {
207 panic!(
208 "unity: virtual slot {}
209 out of range (vtable len {}
210) on the runtime class behind {}
211 (method `{}
212`)",
213 22usize,
214 __vt.len(),
215 <RefineShopExchangeSourceMenuContent as ::unity::ClassIdentity>::NAME,
216 "CalcH",
217 )
218 });
219 let __inner: extern "C" fn(RefineShopExchangeSourceMenuContent, ::unity::OptionalMethod) -> f32 =
220 ::core::mem::transmute(__vi.method_ptr);
221 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
222 __inner(__receiver, __mi)
223 }
224 }
225 }
226 #[doc = "`Open()` overload"]
227 fn open(self) -> () {
228 unsafe {
229 let __receiver = <RefineShopExchangeSourceMenuContent as ::unity::FromIlInstance>::from_il_instance(
230 <Self as ::unity::SystemObject>::as_instance(self),
231 );
232 ::unity::il2cpp_call!((::unity::module_base()+0x2964570usize)as*mut u8,();
233(RefineShopExchangeSourceMenuContent)__receiver)
234 }
235 }
236 #[doc = "`UpdateRate()` overload"]
237 fn update_rate(self) -> () {
238 unsafe {
239 let __receiver = <RefineShopExchangeSourceMenuContent as ::unity::FromIlInstance>::from_il_instance(
240 <Self as ::unity::SystemObject>::as_instance(self),
241 );
242 ::unity::il2cpp_call!((::unity::module_base()+0x29647c0usize)as*mut u8,();
243(RefineShopExchangeSourceMenuContent)__receiver)
244 }
245 }
246 #[doc = "`.ctor()` overload"]
247 fn ctor(self) -> () {
248 unsafe {
249 let __receiver = <RefineShopExchangeSourceMenuContent as ::unity::FromIlInstance>::from_il_instance(
250 <Self as ::unity::SystemObject>::as_instance(self),
251 );
252 ::unity::il2cpp_call!((::unity::module_base()+0x29651b0usize)as*mut u8,();
253(RefineShopExchangeSourceMenuContent)__receiver)
254 }
255 }
256}
257
258#[cfg(feature = "app-refineshopexchangesourcemenucontent")]
259impl<__T: IRefineShopExchangeSourceMenuContent> IRefineShopExchangeSourceMenuContentMethods for __T {}
260
261#[cfg(feature = "app-refineshopexchangesourcemenucontent")]
262impl RefineShopExchangeSourceMenuContent {
263 pub fn start_method_info() -> &'static ::unity::il2cpp::MethodInfo {
264 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
265 }
266
267 pub fn build_menu_item_content_method_info() -> &'static ::unity::il2cpp::MethodInfo {
268 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
269 }
270
271 pub fn get_menu_item_content_max_method_info() -> &'static ::unity::il2cpp::MethodInfo {
272 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
273 }
274
275 pub fn calc_cursor_moved_pos_y_method_info() -> &'static ::unity::il2cpp::MethodInfo {
276 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
277 }
278
279 pub fn calc_w_method_info() -> &'static ::unity::il2cpp::MethodInfo {
280 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
281 }
282
283 pub fn calc_h_method_info() -> &'static ::unity::il2cpp::MethodInfo {
284 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
285 }
286
287 pub fn open_method_info() -> &'static ::unity::il2cpp::MethodInfo {
288 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
289 }
290
291 pub fn update_rate_method_info() -> &'static ::unity::il2cpp::MethodInfo {
292 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
293 }
294
295 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
296 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
297 }
298}
299
300#[cfg(feature = "app-refineshopexchangesourcemenucontent")]
301impl RefineShopExchangeSourceMenuContent {
302 #[doc = "Direct (non-virtual) call to `RefineShopExchangeSourceMenuContent`'s own `Start`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
303 pub unsafe fn start(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
304 let __mi = Self::start_method_info();
305 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
306 __inner(this.into(), ::core::option::Option::None)
307 }
308
309 #[doc = "Direct (non-virtual) call to `RefineShopExchangeSourceMenuContent`'s own `BuildMenuItemContent`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
310 pub unsafe fn build_menu_item_content(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
311 let __mi = Self::build_menu_item_content_method_info();
312 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
313 __inner(this.into(), ::core::option::Option::None)
314 }
315
316 #[doc = "Direct (non-virtual) call to `RefineShopExchangeSourceMenuContent`'s own `GetMenuItemContentMax`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
317 pub unsafe fn get_menu_item_content_max(this: impl ::core::convert::Into<::unity::IlInstance>) -> i32 {
318 let __mi = Self::get_menu_item_content_max_method_info();
319 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> i32 = ::core::mem::transmute(__mi.method_ptr);
320 __inner(this.into(), ::core::option::Option::None)
321 }
322
323 #[doc = "Direct (non-virtual) call to `RefineShopExchangeSourceMenuContent`'s own `CalcCursorMovedPosY`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
324 pub unsafe fn calc_cursor_moved_pos_y(this: impl ::core::convert::Into<::unity::IlInstance>, menu_item_index: i32) -> f32 {
325 let __mi = Self::calc_cursor_moved_pos_y_method_info();
326 let __inner: extern "C" fn(::unity::IlInstance, i32, ::unity::OptionalMethod) -> f32 = ::core::mem::transmute(__mi.method_ptr);
327 __inner(this.into(), menu_item_index, ::core::option::Option::None)
328 }
329
330 #[doc = "Direct (non-virtual) call to `RefineShopExchangeSourceMenuContent`'s own `CalcW`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
331 pub unsafe fn calc_w(this: impl ::core::convert::Into<::unity::IlInstance>) -> f32 {
332 let __mi = Self::calc_w_method_info();
333 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> f32 = ::core::mem::transmute(__mi.method_ptr);
334 __inner(this.into(), ::core::option::Option::None)
335 }
336
337 #[doc = "Direct (non-virtual) call to `RefineShopExchangeSourceMenuContent`'s own `CalcH`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
338 pub unsafe fn calc_h(this: impl ::core::convert::Into<::unity::IlInstance>) -> f32 {
339 let __mi = Self::calc_h_method_info();
340 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> f32 = ::core::mem::transmute(__mi.method_ptr);
341 __inner(this.into(), ::core::option::Option::None)
342 }
343}
344
345#[cfg(feature = "app-refineshopexchangesourcemenucontent")]
346impl RefineShopExchangeSourceMenuContent {
347 #[doc = "`.ctor()` — no args"]
348 pub fn new() -> Self {
349 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
350 panic!(
351 "{}
352::{}
353 failed to instantiate",
354 ::core::stringify!(RefineShopExchangeSourceMenuContent),
355 ::core::stringify!(new),
356 )
357 });
358 <Self as IRefineShopExchangeSourceMenuContentMethods>::ctor(this);
359 this
360 }
361}
362
363#[cfg(feature = "app-refineshopexchangesourcemenucontent")]
364#[doc(hidden)]
365pub mod prelude {
366 pub use super::{IRefineShopExchangeSourceMenuContent, IRefineShopExchangeSourceMenuContentMethods, RefineShopExchangeSourceMenuContent};
367 #[cfg(feature = "app-basicmenucontent")]
368 pub use crate::app::basicmenucontent::IBasicMenuContentMethods;
369 #[cfg(feature = "system-object")]
370 pub use crate::system::object::IObjectMethods;
371 #[cfg(feature = "unity_engine-behaviour")]
372 pub use crate::unity_engine::behaviour::IBehaviourMethods;
373 #[cfg(feature = "unity_engine-component")]
374 pub use crate::unity_engine::component::IComponentMethods;
375 #[cfg(feature = "unity_engine-monobehaviour")]
376 pub use crate::unity_engine::monobehaviour::IMonoBehaviourMethods;
377 #[cfg(feature = "unity_engine-object_2")]
378 pub use crate::unity_engine::object_2::IObject_2Methods;
379 pub use crate::{
380 app::basicmenucontent::IBasicMenuContent,
381 system::object::IObject,
382 unity_engine::{behaviour::IBehaviour, component::IComponent, monobehaviour::IMonoBehaviour, object_2::IObject_2},
383 };
384}