All Projects β†’ Shin-NiL β†’ Godot-Share

Shin-NiL / Godot-Share

Licence: MIT license
Simple share text and/or image module for Godot Engine (Android & iOS)

Programming Languages

Objective-C++
1391 projects
java
68154 projects - #9 most used programming language
C++
36643 projects - #6 most used programming language
python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to Godot-Share

Sharect
πŸ”— A lightweight JavaScript library to let users share their text selections to social networks.
Stars: ✭ 192 (+231.03%)
Mutual labels:  share, text
Godotads
Godot all in one ads module for Android. (Customizable)
Stars: ✭ 137 (+136.21%)
Mutual labels:  module, godot
automatic-vendor-federation
Utility to enable automatic vendor sharing within bundles using Module Federation
Stars: ✭ 69 (+18.97%)
Mutual labels:  share, module
Datash
Send and Receive files directly from your browser with end-to-end encryption
Stars: ✭ 178 (+206.9%)
Mutual labels:  share, text
react-watermark-module
Reactζ°΄ε°η»„δ»ΆοΌŒζ”―ζŒε›Ύη‰‡ζ°΄ε°οΌŒζ–‡ε­—ζ°΄ε°γ€‚
Stars: ✭ 31 (-46.55%)
Mutual labels:  module, text
nativelib-cli
NativeLib is a plugin management system for Godot engine.
Stars: ✭ 19 (-67.24%)
Mutual labels:  module, godot
godot-custom-mobile-template
Godot Game Engine Custom Mobile Template
Stars: ✭ 70 (+20.69%)
Mutual labels:  share, godot
baseline
New method for creating leading on the web
Stars: ✭ 31 (-46.55%)
Mutual labels:  text
rulex
A ruby environment for Latex files
Stars: ✭ 14 (-75.86%)
Mutual labels:  text
hotscript
HotScript - Revolutionizing how Windows works.
Stars: ✭ 29 (-50%)
Mutual labels:  text
OpMon-Godot
An open source Pokemon-inspired game, now with Godot
Stars: ✭ 50 (-13.79%)
Mutual labels:  godot
godot-FLMusicLib
GDNative library that plays mp3, chiptune and tracker music files using Game Music Emu, Minimp3 and openmpt
Stars: ✭ 38 (-34.48%)
Mutual labels:  godot
webtrees-fancy-research-links
Fancy Research Links Module for webtrees
Stars: ✭ 20 (-65.52%)
Mutual labels:  module
react-native-measure-text
Measure text width and/or height without laying it out.
Stars: ✭ 105 (+81.03%)
Mutual labels:  text
Lingo
Text encoding for modern C++
Stars: ✭ 28 (-51.72%)
Mutual labels:  text
Splain
small parser to create more interesting language/sentences
Stars: ✭ 15 (-74.14%)
Mutual labels:  text
line-renderer
A GDScript implementation of a line renderer in Godot.
Stars: ✭ 25 (-56.9%)
Mutual labels:  godot
BitKnight
BitKnight is a side-scroller adventure game in the style of Nokia 3310 games
Stars: ✭ 23 (-60.34%)
Mutual labels:  godot
triple-triad-godot
Re-implementation of Triple Triad from Final Fantasy VIII. Made with Godot 3
Stars: ✭ 61 (+5.17%)
Mutual labels:  godot
pbwrap
Pastebin API wrapper for Python
Stars: ✭ 19 (-67.24%)
Mutual labels:  module

GodotShare

This is a share module for Godot Game Engine (2 & 3) for Android & iOS. You'll be able to share text and/or images in your apps.

Image Sharing Screenshot

How to use

Android

To use this module you'll need a custom template for Android. You can build it by yourself or download a precompiled one.

Another option available for Godot 3.2+ is the new Android plugin system, much easier to use (no recompilation needed). You can find a port of this module using this system here.

Compiling the template (First Option)

This is harder, but you'll have more control over the building process. You can, for example, include any other module you want. For that, do the following steps:

  • Clone or download this repository.
  • Clone or download the Godot Engine repository. One important note here is that this must match the same version of the Godot editor you're using to develop your game.
  • Drop the "share" directory inside the "modules" directory on the Godot source.
  • Recompile the android export template following the official instructions.

Using precompiled templates (Second Option)

If you don't want or can't build the template by yourself, you can find a precompiled template with this module here. Go to the release tab and download the zip file.

Project configuration

  • In your project goto Export > Target > Android:

    • Options:
      • Custom Package:
        • place the template apk you had compiled (or downloaded)
  • open (Project)/android/build/gradle.properties file and add the following line

android.useAndroidX=true
android.enableJetifier=true
  • Add the following lines to project.godot file (Godot 3) or engine.cfg (Godot 2):
	[android]
	modules="org/godotengine/godot/GodotShare"

If you have more separate by comma.

iOS

Godot 2

Just make sure you're using your custom template (compiled in the previous step), for that rename it to "godot_opt.iphone" and replace the file with same name inside the Xcode project.

Godot 3

  • Export your project from Godot, it'll create an Xcode project;
  • Copy the library (.a) you have compiled following the official documentation inside the exported Xcode project. You must override the 'your_project_name.a' file with this file.

Donations

Was this project useful for you? Wanna make a donation? These are the options:

Paypal

My Paypal donation link

Brave browser

If you don't have any money, but still willing to help me you can install Brave browser using my referral link. If you do so and keep using the browser, I'll receive some reward.

If you're already a Brave user, please consider donating some BATs ;)

API Reference (Android & iOS)

The following methods are available:

# Share text
# @param String title
# @param String subject
# @param String text
shareText(title, subject, text)

# Share image
# @param String image_abs_path The image location absolute path
# @param String title
# @param String subject
# @param String text
void sharePic(image_abs_path, title, subject, text)

Usage

An important note is that the image you want to share must be saved on the "user://" virtual directory root to be accessible, you can use OS.get_user_data_dir() to get its absolute path (required by sharePic).

In the demo directory you'll find a working sample project for Godot 2 and 3 where a screen capture is shared.

Known Issues

The screen capture isn't working for the Godot 3 project, it's a known issue for mobile platforms and you can see more details here.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].