Ok, over the last week I tentatively started an implementation of the speech bubble. The problem was, I didn't have Internet connection, so I couldn't check the details and now I'm not sure if what I'm trying to do is what was intended.
I implemented the bubble as a widged, right now it simply draws a label and a line on screen from a given point to the label. I'll use an image eventually, but first I'll have to come to terms with the decoration class. I also made another class that implements the comment logic: given a text and a point on the map / a placeable, it will draw the bubble widget, ensure it fits on screen (I had to add getters for x and y position of the mapview) and will update the widget's position should the speaker / the player character move, so that it still comes out from the right point. But now I'm not sure how to actually draw this on screen. It seems the window_manager is the way to go, but it only accepts layout objects - should the bubble be a layout then, containing a label and an image? Also, since the bubble potentially may have to be moved every cycle, what is the good way of updating its position? Surely not removing it and readding it to the window_manager every time. _______________________________________________ Adonthell-devel mailing list Adonthell-devel@nongnu.org https://lists.nongnu.org/mailman/listinfo/adonthell-devel