Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

Strive for Power

Fantasy Slave Management/RPG Erotic Game · By Strive4Power

func _ready_adult_warning

A topic by Lazerus created Sep 15, 2018 Views: 333 Replies: 1
Viewing posts 1 to 2

func _ready_adult_warning (mainmenu.gd:157)

func _ready_adult_warning():    
    
    var settings = File.new()
    #Disables Adult warning if settings file exists, for own convenience
    var showWarning = !settings.file_exists("user://settings.ini")
    #showWarning = true ### Uncomment this to always show warning as in original
    if true: <----- true is always true (forgotten showWarning == )
        $warning.visible = true
        $TextureFrame.visible = false
    else:
        $warning.visible = false
        $TextureFrame.visible = true

Hah I was just considering looking at making the warning not pop up every time but hadn't looked at the code. Wondering if they made it like this, then changed it back to stay on safe side.  Was thinking I'd just make a mod.