jahd2602 / godotrateit

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

License:MIT License


Languages

Language:Java 57.1%Language:Objective-C++ 22.1%Language:C++ 18.0%Language:Python 2.8%