• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

OTClient Add new image on top enter game otcv8

bpm91

Advanced OT User
Joined
May 23, 2019
Messages
1,046
Solutions
7
Reaction score
180
Location
Brazil
YouTube
caruniawikibr
1736528211617.webp
Hello, otland guys, does anyone know how I can add a small logo image png above this enter game square in otcv8?
 
Last edited:
loses a lot of image quality
What you mean? Depends really on your image resolution..
If you really want to use your current background, you can try scaling it up a little with AI but best is to use a higher resolution.

The resolution for my background is 3065x1909~ and the result is pretty fine, logo needs to go a bit lower though but that is easily adjustable in any editing program.
1736539037739.webp
 
get anchor from enter game window then create a widget with image

 
modules/client_background/background.otui

image-source: /images/background-logo - change to your file name
margin-bottom: 210 - adjust value to your taste

Code:
UIWidget
  id: background
  anchors.fill: parent
  focusable: false
  image-source: /images/background
  image-smooth: true
  image-fixed-ratio: true
  margin-top: 1

  UIWidget
    id: background-logo
    anchors.horizontalCenter: parent.horizontalCenter
    anchors.verticalCenter: parent.verticalCenter
    focusable: false
    image-source: /images/background-logo
    image-smooth: true
    image-fixed-ratio: true
    margin-bottom: 210
 
modules/client_background/background.otui

image-source: /images/background-logo - change to your file name
margin-bottom: 210 - adjust value to your taste

Code:
UIWidget
  id: background
  anchors.fill: parent
  focusable: false
  image-source: /images/background
  image-smooth: true
  image-fixed-ratio: true
  margin-top: 1

  UIWidget
    id: background-logo
    anchors.horizontalCenter: parent.horizontalCenter
    anchors.verticalCenter: parent.verticalCenter
    focusable: false
    image-source: /images/background-logo
    image-smooth: true
    image-fixed-ratio: true
    margin-bottom: 210
Thank you for your answer, I actually wanted that when I open the place to enter the password and acc the image would appear along with it, and when I close it, it would also close.
 
Thank you for your answer, I actually wanted that when I open the place to enter the password and acc the image would appear along with it, and when I close it, it would also close.
Then you can do it like this:
in modules/client_entergame/entergame.otui
you can paste this on the bottom and change the values accordingly like before
Code:
  UIWidget
    id: background-logo
    anchors.horizontalCenter: parent.horizontalCenter
    anchors.bottom: parent.top
    focusable: false
    image-source: /images/background-logo
    image-smooth: true
    image-fixed-ratio: true
    margin-bottom: 10
 
Then you can do it like this:
in modules/client_entergame/entergame.otui
you can paste this on the bottom and change the values accordingly like before
Code:
  UIWidget
    id: background-logo
    anchors.horizontalCenter: parent.horizontalCenter
    anchors.bottom: parent.top
    focusable: false
    image-source: /images/background-logo
    image-smooth: true
    image-fixed-ratio: true
    margin-bottom: 10
ty so much work 100%
 
Back
Top