Inheritance: MemoryObject
Ejemplo n.º 1
0
 public Ptr this[UIReference handle]
 {
     get
     {
         return(this[handle.x000_Hash]);
     }
 }
Ejemplo n.º 2
0
        private static int tryGetBloodShardCosts(UIReference lastClickedElement)
        {
            try
            {
                int bloodShardCosts = 10000;




                var text = UXHelper.GetControl<UXLabel>(lastClickedElement.x008_Name + ".text_cost").xA20_Text_StructStart_Min84Bytes;

                var shardstring = Regex.Match(text, @"\d+").Groups[0].Value;

                if (int.TryParse(shardstring, out bloodShardCosts))
                {
                    return bloodShardCosts;
                }


                return bloodShardCosts;
            }
            catch { return 10000; }
        }