Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Purple outline when showing text #1

Open
pawelk1337 opened this issue Aug 15, 2023 · 3 comments
Open

Purple outline when showing text #1

pawelk1337 opened this issue Aug 15, 2023 · 3 comments

Comments

@pawelk1337
Copy link

image
Hey as you can see from the image the oGUI.Text shows an outline around the text
broken with wite too:
image

@ethanedits
Copy link
Owner

Can you leave your full code in a comment here? Thanks!

@pawelk1337
Copy link
Author

pawelk1337 commented Aug 15, 2023

import oGUI

oGUI.init()


x, y = oGUI.screen.get_size()
print(x, y)

fontsize = 15

x, y = x-200, 50-fontsize
print(x, y)

kdText = oGUI.Text("White", x, y, fontsize, "K/D Ratio: 1.11")
wrText = oGUI.Text("White", x, y-fontsize, fontsize, "WR: 1.35")
button = oGUI.Button(oGUI.gray, oGUI.orange, x, y-fontsize, x-fontsize, y)


while True:
    oGUI.startLoop()
    
    # button.draw()

    kdText.draw()
    wrText.draw()

    button.is_hovered(oGUI.lightgray)
    if button.is_enabled(): 
        exit(0)


    oGUI.endLoop()

@pawelk1337
Copy link
Author

pawelk1337 commented Aug 15, 2023

however when Text is on a button it shows normally
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants