Skip to content
Compare
Choose a tag to compare
@mehah mehah released this 10 May 19:15
· 204 commits to main since this release
7d96402

What's Changed

New Contributors

Full Changelog: 3.1...3.5

[Draw Pool 3.0]

image

Drawpool.3.0.mp4

[Improve Attached Effect]

Improve.Attached.Effect.mp4
  • support dynamic effect
  • add move method
  • add set & get direction
  • bounce system parameters: (Min Height, Height, speed)

[Example]

  • Dynamic Attached Effect:

https://github.com/mehah/otclient/blob/0ac938eefdad6b2613b1293ff3d915d47805d8d3/modules/game_attachedeffects/effects.lua#L108C14-L108C14

[Tile Widget]

Tile.Widget.mp4
local tile = g_map.getTile(g_game.getLocalPlayer():getPosition())
local widget = g_ui.createWidget('Panel')
widget:setSize({width = 90,height = 22})
widget:setText("Yes you can Deux!!! ;)!!! ;)")
widget:setFont("terminus-10px")
widget:setBackgroundColor('#111111cc')
widget:setMarginBottom(40)
widget:setTextAutoResize(true)
tile:attachWidget(widget)

local widget = g_ui.createWidget('Panel')
widget:setTextAutoResize(true)
widget:setText("Yes you can Deux!!! ;)")
widget:setFont("terminus-10px")
widget:setBackgroundColor('red')
widget:setColor('black')
widget:setMarginBottom(40)
widget:setFontScale(3)
g_game.getLocalPlayer():attachWidget(widget)

[Creature Information By Widget]

Creature.Information.By.Uiwidget.mp4

It is now possible to customize creature information using the UIWidget.

To enable, just go to setup.otml and set true in draw-information-by-widget-beta

The files to customize the creature's information are found in 'module\game_creatureinformation'

Note: There is a performance degradation compared to direct programming with Draw Pool, by about ~20%, testing was performed with 60 monsters attacking each other.