| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354 |
- namespace Fort23.Mono
- {
- public class HeroAttributeData
- {
- public string name;
- public string currentValue;
- public string nextValue;
- public HeroAttributeData(string name, string currentValue, string nextValue)
- {
-
- this.name = name;
- this.currentValue = currentValue;
- this.nextValue = nextValue;
- }
- }
-
- [UIBinding(prefab = "HeroAttributeWidget")]
- public partial class HeroAttributeWidget : ItemWidgetBasic
- {
- public int lanID;
- private void Init()
- {
- }
- public override void AddEvent()
- {
- }
- public override void DelEvent()
- {
- }
- public override void AddButtonEvent()
- {
- base.AddButtonEvent();
- }
- public void CustomInit(HeroAttributeData data)
- {
- Text_Name.text = data.name;
- Text_Value.text = data.currentValue;
- Text_NextValue.text = data.nextValue;
- }
-
- public void CustomInit1(int lanId ,HeroAttributeData data)
- {
- lanID = lanId;
- Text_Name.text = data.name;
- Text_Value.text = data.currentValue;
- Text_NextValue.text = data.nextValue;
- }
- }
- }
|