Skip to content

Add Button Usage Example#709

Open
ralphweng-autograb wants to merge 1 commit intothoth-tech:mainfrom
ralphweng-autograb:button-usage-example
Open

Add Button Usage Example#709
ralphweng-autograb wants to merge 1 commit intothoth-tech:mainfrom
ralphweng-autograb:button-usage-example

Conversation

@ralphweng-autograb
Copy link
Copy Markdown

Overview

This usage example demonstrates button by creating an interactive button click counter with three buttons inside an immediate-mode GUI panel.

SplashKit Function: button

Files Included

  • Title and explanation (.txt)
  • C++ code (SplashKit)
  • C# code (Top-Level statements)
  • C# code (Object-Oriented Programming)
  • Python code
  • Screenshot/GIF

Screenshot

button-mockup

Usage Example Checks

  • Simple, clear demonstration of the function
  • Code uses SplashKit functions
  • Tested in Chrome and Firefox

@netlify
Copy link
Copy Markdown

netlify bot commented Mar 27, 2026

Deploy Preview for splashkit ready!

Name Link
🔨 Latest commit 01e67e7
🔍 Latest deploy log https://app.netlify.com/projects/splashkit/deploys/69c60b5209770c0007380321
😎 Deploy Preview https://deploy-preview-709--splashkit.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

Copy link
Copy Markdown

@himanshigaba himanshigaba left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The usage example is well implemented and clearly demonstrates how the button function works across all languages. The structure and files are correct, and the example runs as expected.

While the example includes additional features such as multiple buttons and counters, which makes it slightly more complex than a typical usage example, the functionality is still clear and understandable.

Overall, good work. Approved.

Copy link
Copy Markdown

@Osaid2993 Osaid2993 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good overall. The example is clear, interactive, and easy to understand. I like that the counters make the button behaviour very visible for beginners. Nice work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants