Skip to content

JavaryGames/godotrateit

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

godot-rateit

Platform Platform Godot Engine LICENSE

Allows you to open the google play or app store on your application in order to rate it.

Usage

Loading the module for Android (iOS auto-loads it)

Edit engine.cfg and add an android part as following:

[android]
modules="org/godotengine/godot/GodotRateIt"

Initializing the module using GDScript

Here is an example

extends Node

# Rate module
var godot_rateit

func _ready():
  if(Engine.has_singleton("GodotRateIt")):
    godot_rateit = Engine.get_singleton('GodotRateIt')

func rate_it():
  if godot_rateit != null:
    godot_rateit.ask_and_rate('Rate?', 'Yes', 'No', '' if OS.get_name() == 'Android' else '1234567890')

License

See LICENSE file

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 57.1%
  • Objective-C++ 24.0%
  • C++ 17.2%
  • Other 1.7%