Merge pull request #72 from Yusarina/credits

Credits
This commit is contained in:
Onan Chew
2024-10-21 20:25:05 -04:00
committed by GitHub
2 changed files with 71 additions and 1 deletions
+16 -1
View File
@@ -267,7 +267,22 @@
"check_for_update.cantCheck": "Unable to check for updates",
"download_file.cantConnect": "Cannot connect to update server",
"download_file.cantFindZip": "Update file not found",
"download_file.cantFindAvatarToolkit": "Avatar Toolkit files not found in update package"
"download_file.cantFindAvatarToolkit": "Avatar Toolkit files not found in update package",
"CreditsSupport.label": "Credits & Support",
"CreditsSupport.credits_title": "Credits",
"CreditsSupport.credits_text1": "Avatar Toolkit has been created by the Neoneko team:",
"CreditsSupport.credits_text2": "Yusarina and 989Onan",
"CreditsSupport.credits_text3": "Some code has been inspired by Cats Blender Plugin,",
"CreditsSupport.credits_text4": "thanks to the original contributors to that plugin.",
"CreditsSupport.support_text1": "If you like what we do, you can donate/ tip to us",
"CreditsSupport.support_text2": "through our pally.gg page.",
"CreditsSupport.support_title": "Support Us",
"CreditsSupport.support_button": "Support Us",
"CreditsSupport.help_title": "Need Help?",
"CreditsSupport.help_text1": "Check out our wiki first, we HIGHLY encourage",
"CreditsSupport.help_text2": "that you read it before seeking further support.",
"CreditsSupport.wiki_button": "Wiki",
"CreditsSupport.discord_button": "Join Discord"
}
}
+55
View File
@@ -0,0 +1,55 @@
import bpy
from ..core.register import register_wrap
from .panel import AvatarToolKit_PT_AvatarToolkitPanel, CATEGORY_NAME
from ..functions.translations import t
from ..core.common import open_web_after_delay_multi_threaded
@register_wrap
class AvatarToolkit_PT_CreditsSupport(bpy.types.Panel):
bl_label = t("CreditsSupport.label")
bl_idname = "OBJECT_PT_avatar_toolkit_credits_support"
bl_space_type = 'VIEW_3D'
bl_region_type = 'UI'
bl_category = CATEGORY_NAME
bl_parent_id = AvatarToolKit_PT_AvatarToolkitPanel.bl_idname
bl_order = 10
def draw(self, context):
layout = self.layout
layout.label(text=t("CreditsSupport.credits_title"))
box = layout.box()
column = box.column(align=True)
column.scale_y = 0.7
column.label(text=t("CreditsSupport.credits_text1"))
column.label(text=t("CreditsSupport.credits_text2"))
column.label(text=t("CreditsSupport.credits_text3"))
column.label(text=t("CreditsSupport.credits_text4"))
layout.separator()
layout.label(text=t("CreditsSupport.support_title"))
box = layout.box()
column = box.column(align=True)
column.scale_y = 0.7
column.label(text=t("CreditsSupport.support_text1"))
column.label(text=t("CreditsSupport.support_text2"))
row = column.row()
row.scale_y = 1.5
row.operator("wm.url_open", text=t("CreditsSupport.support_button")).url = "https://neoneko.xyz/supportus.html"
layout.separator()
layout.label(text=t("CreditsSupport.help_title"))
box = layout.box()
column = box.column(align=True)
column.scale_y = 0.7
column.label(text=t("CreditsSupport.help_text1"))
column.label(text=t("CreditsSupport.help_text2"))
row = column.row()
row.scale_y = 1.5
row.operator("wm.url_open", text=t("CreditsSupport.wiki_button")).url = "https://github.com/teamneoneko/Avatar-Toolkit"
row = column.row()
row.scale_y = 1.5
row.operator("wm.url_open", text=t("CreditsSupport.discord_button")).url = "https://discord.catsblenderplugin.xyz"