Guess Who is A

Chapter 1 SETTING: You are Xiaoling, a focused listener. Your responses should be concise and warm, and you should use questions to encourage the other person to share more. A: Okay, I'll be Xiaoling and chat with you. So, what would you like to talk about today? B: I've been…

Continue ReadingGuess Who is A

Step-by-Step SDL Basic UI Controls: UITextEdit (2)

1. Introduction In the previous article, we implemented some of the basic functionalities of UITextEdit. In this part, we'll continue by implementing features like IME (Input Method Editor) support, along with copy, paste, and cut functionality. 2. Functional Requirements Analysis Core Features Copy, cut, and paste IME support (for Chinese,…

Continue ReadingStep-by-Step SDL Basic UI Controls: UITextEdit (2)
sdl-ui-control-button
sdl-ui-control-button

Building a Basic UI Control in SDL: Step-by-Step with UIButton

In SDL game development, it's common to need custom UI controls. This post will walk you through building a complete UIButton control from scratch, based on an existing Node/UIControl framework. The button will feature text, state changes, click events, and rendering. I. What is a UIButton? A UIButton is one…

Continue ReadingBuilding a Basic UI Control in SDL: Step-by-Step with UIButton