|
|
-
- AttrNumberDisplay = AttrNumberDisplay or BaseClass()
-
- function AttrNumberDisplay:__init()
- --现在这个csprite是临时的,里面包含的图元可以通过/assets/temp_esprites/damage.esprite看到
- -- self.damage_render_group = RenderGroup.GRQ_AIR --伤害数字显示的渲染队列
- -- self.damage_csprite = GameRes.PathTool.GetUIResPath("xx_damage_font")
-
- AttrNumberDisplay.Instance = self
-
- self.worldFontMgr = WorldArtFontManager:getInstance()
-
-
- end
-
- function AttrNumberDisplay:SetInfoByDamageType(type)
-
- end
-
- function AttrNumberDisplay:getInstance()
- if AttrNumberDisplay.Instance == nil then
- AttrNumberDisplay.Instance = AttrNumberDisplay.New()
- end
- return AttrNumberDisplay.Instance
- end
-
- function AttrNumberDisplay:__delete()
- -- if self.res_keeper then
- -- self.res_keeper:DeleteMe()
- -- self.res_keeper = nil
- -- end
-
- end
-
- function AttrNumberDisplay:ShowAttrNumber()
- local font_id = self.worldFontMgr:CreateWorldArtFont()
-
- self.worldFontMgr:AddArtFontImg(font_id, "scene_str",52)
- self.worldFontMgr:AddArtFontNumber(font_id, tostring(3), "scene_damage_",25)
- end
-
-
- function AttrNumberDisplay:Update()
-
- end
-
|