mirror of
https://github.com/bombsquad-community/plugin-manager.git
synced 2025-11-07 17:36:00 +00:00
Changed the tutorial button position
As the previous UI button was replacing the settings button in some plugins. Changed the UI position.
This commit is contained in:
parent
ee2715d3ec
commit
3d13058adb
1 changed files with 4 additions and 4 deletions
|
|
@ -960,12 +960,12 @@ class PluginWindow(popup.PopupWindow):
|
||||||
color=(1, 1, 1, 1),
|
color=(1, 1, 1, 1),
|
||||||
rotate=25,
|
rotate=25,
|
||||||
scale=0.45)
|
scale=0.45)
|
||||||
|
|
||||||
## Below snippet handles the tutorial button in the plugin window
|
# Below snippet handles the tutorial button in the plugin window
|
||||||
tutorial_url = self.plugin.info["external_url"]
|
tutorial_url = self.plugin.info["external_url"]
|
||||||
if tutorial_url:
|
if tutorial_url:
|
||||||
open_pos_x = (10 if _uiscale is ba.UIScale.SMALL else
|
open_pos_x = (350 if _uiscale is ba.UIScale.SMALL else
|
||||||
70 if _uiscale is ba.UIScale.MEDIUM else 60)
|
410 if _uiscale is ba.UIScale.MEDIUM else 400)
|
||||||
open_pos_y = (100 if _uiscale is ba.UIScale.SMALL else
|
open_pos_y = (100 if _uiscale is ba.UIScale.SMALL else
|
||||||
110 if _uiscale is ba.UIScale.MEDIUM else 120)
|
110 if _uiscale is ba.UIScale.MEDIUM else 120)
|
||||||
open_button = ba.buttonwidget(parent=self._root_widget,
|
open_button = ba.buttonwidget(parent=self._root_widget,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue